1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: count number of chars instead of bytes for suffix in function string_cut

This commit is contained in:
Sébastien Helleu
2018-06-02 15:17:59 +02:00
parent 39a291bc53
commit ba19fa9963
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ TEST(Eval, EvalExpression)
WEE_CHECK_EVAL("tes…", "${cutscr:3,…,test}");
WEE_CHECK_EVAL("te+", "${cut:+3,+,test}");
WEE_CHECK_EVAL("te+", "${cutscr:+3,+,test}");
WEE_CHECK_EVAL("", "${cut:+3,…,test}");
WEE_CHECK_EVAL("te", "${cut:+3,…,test}");
WEE_CHECK_EVAL("te…", "${cutscr:+3,…,test}");
WEE_CHECK_EVAL("t++", "${cut:+3,++,test}");
WEE_CHECK_EVAL("t++", "${cutscr:+3,++,test}");