mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: forward --end-of-word of the input should consider the mode's delta (#2811)
This commit is contained in:
parent
e6471b7fe0
commit
4076e35a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ impl Input {
|
|||
if b && !matches!(snap.op, InputOp::None | InputOp::Select(_)) {
|
||||
return self.r#move(i as isize);
|
||||
} else if b {
|
||||
return self.r#move(if opt.end_of_word { i - 1 } else { i } as isize);
|
||||
return self.r#move(if opt.end_of_word { i - snap.mode.delta() } else { i } as isize);
|
||||
}
|
||||
prev = k;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue