mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Let nextd-or-forward-word binding move like normal forward_word
Broken in #8358, this caused nextd-or-forward-word to actually be
nextd-or-forward-bigword.
See #8790.
(cherry picked from commit 2101dd4add
)
This commit is contained in:
parent
07543ff881
commit
e458bf5763
1 changed files with 2 additions and 2 deletions
|
@ -3543,7 +3543,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
}
|
||||
|
||||
auto move_style =
|
||||
(c == rl::backward_word) ? move_word_style_punctuation : move_word_style_whitespace;
|
||||
(c != rl::backward_bigword) ? move_word_style_punctuation : move_word_style_whitespace;
|
||||
move_word(active_edit_line(), MOVE_DIR_LEFT, false /* do not erase */, move_style,
|
||||
false);
|
||||
break;
|
||||
|
@ -3561,7 +3561,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
}
|
||||
|
||||
auto move_style =
|
||||
(c == rl::forward_word) ? move_word_style_punctuation : move_word_style_whitespace;
|
||||
(c != rl::forward_bigword) ? move_word_style_punctuation : move_word_style_whitespace;
|
||||
editable_line_t *el = active_edit_line();
|
||||
if (el->position() < el->size()) {
|
||||
move_word(el, MOVE_DIR_RIGHT, false /* do not erase */, move_style, false);
|
||||
|
|
Loading…
Reference in a new issue