about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorPete <pgm987@gmail.com>2015-05-29 14:25:14 +0100
committerPete <pgm987@gmail.com>2015-05-29 14:25:14 +0100
commitfbc57765a3627666be096e476b0a3b4a6ef6e786 (patch)
tree4ab055e0a9effeb13e8959f0672b4d4471ad591e /src/command/command.c
parent304e08a9c0bfa27ed84dc1ff0a2e2d32b36529f8 (diff)
downloadprofani-tty-fbc57765a3627666be096e476b0a3b4a6ef6e786.tar.gz
Added window auto tidy.
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index bd0d741c..25571e81 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -684,6 +684,14 @@ static struct cmd_t command_defs[] =
           "Enable or disable word wrapping in the main window.",
           NULL } } },
 
+    { "/winstidy",
+        cmd_winstidy, parse_args, 1, 1, &cons_winstidy_setting,
+        { "/winstidy on|off", "Auto tidy windows.",
+        { "/winstidy on|off",
+          "------------",
+          "Enable or disable auto window tidy.",
+          NULL } } },
+
     { "/time",
         cmd_time, parse_args, 1, 2, &cons_time_setting,
         { "/time setting|statusbar [setting]", "Time display.",
@@ -1921,7 +1929,7 @@ _cmd_complete_parameters(const char * const input)
     // autocomplete boolean settings
     gchar *boolean_choices[] = { "/beep", "/intype", "/states", "/outtype",
         "/flash", "/splash", "/chlog", "/grlog", "/mouse", "/history",
-        "/vercheck", "/privileges", "/presence", "/wrap", "/carbons" };
+        "/vercheck", "/privileges", "/presence", "/wrap", "/winstidy", "/carbons" };
 
     for (i = 0; i < ARRAY_SIZE(boolean_choices); i++) {
         result = autocomplete_param_with_func(input, boolean_choices[i], prefs_autocomplete_boolean_choice);