diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-04-23 16:54:40 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-04-24 09:49:14 +0200 |
commit | 125ca2f0d2e0513ed8b47ba05a193fccbcb9d79d (patch) | |
tree | 9215cf43b982348bbca4582ec1e49c67afa96ddd /src/command/cmd_funcs.c | |
parent | 637dfca6ddb38874e0472ffa53acd2cc73e3e608 (diff) | |
download | profani-tty-125ca2f0d2e0513ed8b47ba05a193fccbcb9d79d.tar.gz |
Add occupants wrap option
Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index aa31c3af..e87f5bb5 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -4391,6 +4391,17 @@ cmd_occupants(ProfWin *window, const char *const command, gchar **args) } } + if (g_strcmp0(args[0], "wrap") == 0) { + if (!args[1]) { + cons_bad_cmd_usage(command); + return TRUE; + } else { + _cmd_set_boolean_preference(args[1], command, "Occupants panel line wrap", PREF_OCCUPANTS_WRAP); + occupantswin_occupants_all(); + return TRUE; + } + } + if (g_strcmp0(args[0], "default") == 0) { if (g_strcmp0(args[1], "show") == 0) { if (g_strcmp0(args[2], "jid") == 0) { |