diff options
author | James Booth <boothj5@gmail.com> | 2015-11-22 01:39:20 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-22 01:39:20 +0000 |
commit | 3bc9275079ce76689ad7f08538cf6ba76b034df7 (patch) | |
tree | 2415901bb183129e7a617c123c979d44753bb68a /src/command/command.c | |
parent | 0763bfc9f49dd445502d518b530654720d2d9985 (diff) | |
download | profani-tty-3bc9275079ce76689ad7f08538cf6ba76b034df7.tar.gz |
Added word wrap to roster panel
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 7 |
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; |