1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

core: add key alt+backspace, change behavior of key ctrl+w (closes #559)

The key ctrl+w now deletes one word until whitespace.

The new key alt+backspace deletes one word (same behavior as ctrl+w in previous
releases).
This commit is contained in:
Sébastien Helleu
2022-09-18 23:26:49 +02:00
parent d7c0e896b2
commit 01cf98e8fb
45 changed files with 1528 additions and 320 deletions
+15
View File
@@ -931,6 +931,21 @@ TEST(CoreString, ConvertEscapedChars)
WEE_TEST_STR("\\~zzy", string_convert_escaped_chars ("\\~zzy"));
}
/*
* Tests functions:
* string_is_whitespace_char
*/
TEST(CoreString, IsWhitespaceChar)
{
LONGS_EQUAL(0, string_is_whitespace_char (NULL));
LONGS_EQUAL(0, string_is_whitespace_char (""));
LONGS_EQUAL(0, string_is_whitespace_char ("abc def"));
LONGS_EQUAL(1, string_is_whitespace_char (" abc def"));
LONGS_EQUAL(1, string_is_whitespace_char ("\tabc def"));
}
/*
* Tests functions:
* string_is_word_char_highlight