From cb565d667edeeb629c34f10b50b4a0e78682f643 Mon Sep 17 00:00:00 2001 From: John Scarrott Date: Thu, 23 Jan 2025 13:03:50 +0000 Subject: [PATCH] fix: Add repaint command to the fish shell scripts (#303) The call ensures that the prompt restores properly and looks correct after using television. This fixes #300 for me locally. --- crates/television-utils/shell/completion.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/television-utils/shell/completion.fish b/crates/television-utils/shell/completion.fish index f828c66..9c38bfc 100644 --- a/crates/television-utils/shell/completion.fish +++ b/crates/television-utils/shell/completion.fish @@ -7,6 +7,7 @@ function tv_smart_autocomplete # add a space if the prompt does not end with one (unless the prompt is an implicit cd, e.g. '\.') string match -r '.*( |./)$' -- "$current_prompt" || set current_prompt "$current_prompt " commandline -r "$current_prompt$output" + commandline -f repaint end end @@ -17,6 +18,7 @@ function tv_shell_history if test -n "$output" commandline -r "$output" + commandline -f repaint end end