summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-16 20:12:55 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-16 20:12:55 +0200
commitc161d704f7629b78a08e53468e12637be1491436 (patch)
tree15dc6d75d457e63fb2180fece7c70e5c84a2456a /src
parent2ed8974d2fae68c5c470421e6701649baf702562 (diff)
downloadweechat-c161d704f7629b78a08e53468e12637be1491436.zip
core: use value 2 of keep_eol in function string_split to keep separators at end of string
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 49d9c6bf3..2ffeb583e 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -860,7 +860,7 @@ string_split (const char *string, const char *separators, int keep_eol,
if (!string || !string[0] || !separators || !separators[0])
return NULL;
- string2 = string_strip (string, 1, 1, separators);
+ string2 = string_strip (string, 1, (keep_eol == 2) ? 0 : 1, separators);
if (!string2 || !string2[0])
return NULL;