about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 37e963c9..313898c1 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -284,6 +284,7 @@ static struct cmd_t command_defs[] =
             "/roster indent resource <indent>",
             "/roster indent presence <indent>",
             "/roster size <percent>",
+            "/roster wrap on|off",
             "/roster add <jid> [<nick>]",
             "/roster remove <jid>",
             "/roster remove_all contacts",
@@ -323,6 +324,7 @@ static struct cmd_t command_defs[] =
             { "indent resource <indent>",   "Indent resource line by <indent> spaces." },
             { "indent presence <indent>",   "Indent presence line by <indent> spaces." },
             { "size <precent>",             "Percentage of the screen taken up by the roster (1-99)." },
+            { "wrap on|off",                "Enabled or disanle line wrapping in roster panel." },
             { "add <jid> [<nick>]",         "Add a new item to the roster." },
             { "remove <jid>",               "Removes an item from the roster." },
             { "remove_all contacts",        "Remove all items from roster." },
@@ -2041,6 +2043,7 @@ cmd_init(void)
     autocomplete_add(roster_ac, "size");
     autocomplete_add(roster_ac, "char");
     autocomplete_add(roster_ac, "indent");
+    autocomplete_add(roster_ac, "wrap");
 
     roster_char_ac = autocomplete_new();
     autocomplete_add(roster_char_ac, "header");
@@ -2953,6 +2956,10 @@ _roster_autocomplete(ProfWin *window, const char *const input)
     if (result) {
         return result;
     }
+    result = autocomplete_param_with_func(input, "/roster wrap", prefs_autocomplete_boolean_choice);
+    if (result) {
+        return result;
+    }
     result = autocomplete_param_with_ac(input, "/roster", roster_ac, TRUE);
     if (result) {
         return result;