mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-07 15:47:46 +08:00
ctrl-u to suppress autosuggestion
ctrl-w and {ctrl,alt}-backspace do the same.
This commit is contained in:
parent
0f4e195819
commit
33d92d2a1f
|
@ -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 New Issue
Block a user