Added /wrap user preference for enabling/disabling word wrapping

This commit is contained in:
James Booth
2014-11-09 23:29:25 +00:00
parent 70501f5dbf
commit 46583839df
8 changed files with 43 additions and 4 deletions

View File

@@ -620,7 +620,7 @@ cmd_help(gchar **args, struct cmd_help_t help)
"/chlog", "/flash", "/gone", "/grlog", "/history", "/intype",
"/log", "/mouse", "/notify", "/outtype", "/prefs", "/priority",
"/reconnect", "/roster", "/splash", "/states", "/statuses", "/theme",
"/titlebar", "/vercheck", "/privileges", "/occupants", "/presence" };
"/titlebar", "/vercheck", "/privileges", "/occupants", "/presence", "/wrap" };
_cmd_show_filtered_help("Settings commands", filter, ARRAY_SIZE(filter));
} else if (strcmp(args[0], "navigation") == 0) {
@@ -2928,6 +2928,16 @@ cmd_presence(gchar **args, struct cmd_help_t help)
return _cmd_set_boolean_preference(args[0], help, "Contact presence", PREF_PRESENCE);
}
gboolean
cmd_wrap(gchar **args, struct cmd_help_t help)
{
gboolean result = _cmd_set_boolean_preference(args[0], help, "Word wrap", PREF_WRAP);
wins_resize_all();
return result;
}
gboolean
cmd_states(gchar **args, struct cmd_help_t help)
{