diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-10 13:16:59 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-10 18:29:16 +0100 |
commit | 2b70d71aa1c891f2f251aa775cf239e5611576d5 (patch) | |
tree | 33b7daaa910582482c420e4e1e06a2d8851572e9 /tests/unit/core/test-core-hook.cpp | |
parent | 8aa5f5375e2a16d538fdf96babcd52a2f8f7801c (diff) | |
download | weechat-2b70d71aa1c891f2f251aa775cf239e5611576d5.zip |
core: replace argument "keep_eol" by "flags" in function string_split (closes #1322)
Diffstat (limited to 'tests/unit/core/test-core-hook.cpp')
-rw-r--r-- | tests/unit/core/test-core-hook.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/core/test-core-hook.cpp b/tests/unit/core/test-core-hook.cpp index 5fc9390f1..8875912ba 100644 --- a/tests/unit/core/test-core-hook.cpp +++ b/tests/unit/core/test-core-hook.cpp @@ -29,6 +29,7 @@ extern "C" #include "src/gui/gui-buffer.h" #include "src/gui/gui-chat.h" #include "src/gui/gui-line.h" +#include "src/plugins/plugin.h" } #define TEST_BUFFER_NAME "test" @@ -182,7 +183,11 @@ test_modifier_cb (const void *pointer, void *data, (void) modifier; /* split modifier_data, which is: "plugin;name;tags" */ - items = string_split (modifier_data, ";", 0, 3, &num_items); + items = string_split (modifier_data, ";", + WEECHAT_STRING_SPLIT_STRIP_LEFT + | WEECHAT_STRING_SPLIT_STRIP_RIGHT + | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, + 3, &num_items); if (num_items < 2) return NULL; |