1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

core: add value -1 for keep_eol in function string_strip (issue #1322)

The value -1 means it's a standard split, but empty items are kept, and
separators are not removed at beginning/end of string.
This commit is contained in:
Sébastien Helleu
2019-03-09 21:54:25 +01:00
parent 79d0910c08
commit 8aa5f5375e
3 changed files with 172 additions and 63 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ trigger_hook (struct t_trigger *trigger)
trigger_unhook (trigger);
argv = weechat_string_split (weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]),
";", 0, 0, &argc);
";", -1, 0, &argc);
argv_eol = weechat_string_split (weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]),
";", 1, 0, NULL);