bind: forward-word to go to end of line again

Fixes bbb2f0de8d (feat(vi-mode): make word movements vi-compliant,
2026-01-10)

Closes #12314
This commit is contained in:
phanium
2026-01-13 00:44:37 +08:00
committed by Johannes Altmanninger
parent f1a9b9bf43
commit b15da3e118

View File

@@ -3608,7 +3608,7 @@ fn handle_readline_command(&mut self, c: ReadlineCmd) {
);
if !is_kill {
let (_elt, el) = self.active_edit_line_mut();
if el.position() + 1 < el.len() {
if el.position() < el.len() {
el.set_position(el.position() + 1);
}
}