From 9efb7fd5f6acaebeb8ea2ced3dde2f7fb159064e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 4 Dec 2019 21:10:22 +0100 Subject: [PATCH] __fish_cancel_commandline: Always repaint Fixes #6394. --- share/functions/__fish_cancel_commandline.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_cancel_commandline.fish b/share/functions/__fish_cancel_commandline.fish index f3bd68513..23c76aa78 100644 --- a/share/functions/__fish_cancel_commandline.fish +++ b/share/functions/__fish_cancel_commandline.fish @@ -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