__fish_cancel_commandline: Always repaint

Fixes #6394.
This commit is contained in:
Fabian Homborg 2019-12-04 21:10:22 +01:00
parent 1fdb23637a
commit 9efb7fd5f6

View file

@ -19,7 +19,9 @@ function __fish_cancel_commandline
echo ""
end
commandline ""
commandline -f repaint
emit fish_cancel
end
# Repaint even if we haven't cancelled anything,
# so the prompt refreshes and the terminal scrolls to it.
commandline -f repaint
end