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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user