]> jfr.im git - irc/weechat/weechat.git/commit
core: check for newline characters in string_is_whitespace_char
authorTrygve Aaberge <redacted>
Mon, 26 Jun 2023 21:52:23 +0000 (23:52 +0200)
committerSébastien Helleu <redacted>
Tue, 27 Jun 2023 19:26:47 +0000 (21:26 +0200)
commitbd9978e4678ab49ebafec0a22ba3329ce1b6236d
treedda33d87a255f29db8721480bdfd10012f319af4
parentb4d999010a535ccbc2fbedfaed4e24f308feb006
core: check for newline characters in string_is_whitespace_char

This fixes a bug where if you had multiple lines in the input and
pressed ctrl-w when the cursor was after the first word of any line but
the first, it would delete both the word before the cursor and the last
word on the preceding line.
src/core/wee-string.c
tests/unit/core/test-core-string.cpp