mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 12:45:13 +00:00
ctrl-u to suppress autosuggestion
ctrl-w and {ctrl,alt}-backspace do the same.
This commit is contained in:
parent
0f4e195819
commit
33d92d2a1f
1 changed files with 3 additions and 0 deletions
|
@ -2746,6 +2746,9 @@ impl<'a> Reader<'a> {
|
|||
}
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue