mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 13:01:15 -03:00
Consistency-fix for word motions (#7354)
* change word motion test to include start cursor in specification * add test case for bug * fix bug
This commit is contained in:
@@ -687,8 +687,11 @@ bool move_word_state_machine_t::consume_char_punctuation(wchar_t c) {
|
||||
consumed = true;
|
||||
if (iswspace(c)) {
|
||||
state = s_whitespace;
|
||||
} else if (iswalnum(c)) {
|
||||
state = s_alphanumeric;
|
||||
} else {
|
||||
// Don't allow switching type (ws->nonws) after non-whitespace.
|
||||
// Don't allow switching type (ws->nonws) after non-whitespace and
|
||||
// non-alphanumeric.
|
||||
state = s_rest;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user