mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
bind: nextd-or-forward-word/prevd-or-backward-word don't emit nextd/prevd
Fixes bbb2f0de8d (feat(vi-mode): make word movements
vi-compliant,2026-01-10)
Closes #12320
This commit is contained in:
committed by
Johannes Altmanninger
parent
701c5da823
commit
1affa7a16e
@@ -3566,8 +3566,8 @@ fn handle_readline_command(&mut self, c: ReadlineCmd) {
|
||||
| rl::KillWordEmacs
|
||||
| rl::KillBigwordEmacs
|
||||
| rl::NextdOrForwardWordEmacs => {
|
||||
if c == rl::PrevdOrBackwardWord && self.command_line.is_empty() {
|
||||
self.eval_bind_cmd(L!("prevd"));
|
||||
if c == rl::NextdOrForwardWordEmacs && self.command_line.is_empty() {
|
||||
self.eval_bind_cmd(L!("nextd"));
|
||||
self.schedule_prompt_repaint();
|
||||
return;
|
||||
}
|
||||
@@ -3750,6 +3750,11 @@ fn handle_readline_command(&mut self, c: ReadlineCmd) {
|
||||
| rl::BackwardBigword
|
||||
| rl::BackwardBigwordEnd
|
||||
| rl::PrevdOrBackwardWord => {
|
||||
if c == rl::PrevdOrBackwardWord && self.command_line.is_empty() {
|
||||
self.eval_bind_cmd(L!("prevd"));
|
||||
self.schedule_prompt_repaint();
|
||||
return;
|
||||
}
|
||||
let to_word_end = matches!(c, rl::BackwardWordEnd | rl::BackwardBigwordEnd);
|
||||
|
||||
let style = match c {
|
||||
|
||||
Reference in New Issue
Block a user