mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:11:11 -03:00
Fix backward-delete-char not stopping after control characters
Fixes 146384abc6 (Stop using wcwidth entirely, 2026-03-15)
Fixes #12583
This commit is contained in:
@@ -2207,7 +2207,7 @@ fn delete_char(&mut self, backward: bool /* = true */) {
|
||||
// width at least 1.
|
||||
loop {
|
||||
pos -= 1;
|
||||
if fish_wcwidth(el.text().char_at(pos)).is_some_and(|w| w != 0) || pos == 0 {
|
||||
if fish_wcwidth(el.text().char_at(pos)).is_none_or(|w| w != 0) || pos == 0 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user