From 917815635415b523eaf58ed4c65757247d5cca99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 15 Jun 2019 20:47:14 +0200 Subject: api: add argument "strip_items" in function string_split --- src/plugins/fset/fset-buffer.c | 2 +- src/plugins/fset/fset-command.c | 2 +- src/plugins/fset/fset-completion.c | 1 + src/plugins/fset/fset-config.c | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/plugins/fset') diff --git a/src/plugins/fset/fset-buffer.c b/src/plugins/fset/fset-buffer.c index 6820148ca..a3230eabe 100644 --- a/src/plugins/fset/fset-buffer.c +++ b/src/plugins/fset/fset-buffer.c @@ -782,7 +782,7 @@ fset_buffer_display_option_eval (struct t_fset_option *fset_option) NULL); if (line) { - lines = weechat_string_split (line, "\r\n", + lines = weechat_string_split (line, "\r\n", NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index 4b510a8a7..776664f76 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -469,7 +469,7 @@ fset_command_run_set_cb (const void *pointer, void *data, rc = WEECHAT_RC_OK; - argv = weechat_string_split (command, " ", + argv = weechat_string_split (command, " ", NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, diff --git a/src/plugins/fset/fset-completion.c b/src/plugins/fset/fset-completion.c index 25b2eb6ec..2be16484b 100644 --- a/src/plugins/fset/fset-completion.c +++ b/src/plugins/fset/fset-completion.c @@ -82,6 +82,7 @@ fset_completion_option_cb (const void *pointer, void *data, words = weechat_string_split ( weechat_config_option_get_string (ptr_option, "name"), "_", + NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c index 3a4b1bb18..66e8f16b9 100644 --- a/src/plugins/fset/fset-config.c +++ b/src/plugins/fset/fset-config.c @@ -154,6 +154,7 @@ fset_config_change_sort_cb (const void *pointer, void *data, fset_config_sort_fields = weechat_string_split ( weechat_config_string (fset_config_look_sort), ",", + NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, -- cgit v1.2.3