mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-12 14:01: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);
|
assert!(end >= begin);
|
||||||
let len = std::cmp::max(end - begin, 1);
|
let len = std::cmp::max(end - begin, 1);
|
||||||
|
if elt == EditableLineTag::Commandline {
|
||||||
|
self.suppress_autosuggestion = true;
|
||||||
|
}
|
||||||
self.data.kill(
|
self.data.kill(
|
||||||
elt,
|
elt,
|
||||||
end - len..end,
|
end - len..end,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user