mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Close the completions pager (if it's open) on ctrl+c
If you're using the old binding that only clears the commandline and doesn't preserve its contents and start a new line, you can use ```fish bind \cc "commandline -f cancel; commandline ''" ``` instead. Closes #4298.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# This is meant to be bound to something like \cC.
|
||||
function __fish_cancel_commandline
|
||||
# Close the pager if it's open (#4298)
|
||||
commandline -f cancel
|
||||
|
||||
set -l cmd (commandline)
|
||||
if test -n "$cmd"
|
||||
commandline -C 1000000
|
||||
|
||||
Reference in New Issue
Block a user