mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
ctrl-u to suppress autosuggestion
ctrl-w and {ctrl,alt}-backspace do the same.
This commit is contained in:
@@ -2746,6 +2746,9 @@ fn handle_readline_command(&mut self, c: ReadlineCmd) {
|
||||
}
|
||||
assert!(end >= begin);
|
||||
let len = std::cmp::max(end - begin, 1);
|
||||
if elt == EditableLineTag::Commandline {
|
||||
self.suppress_autosuggestion = true;
|
||||
}
|
||||
self.data.kill(
|
||||
elt,
|
||||
end - len..end,
|
||||
|
||||
Reference in New Issue
Block a user