fix: Add repaint command to the fish shell scripts

The call ensures that the prompt restores properly and looks correct after using television.
This commit is contained in:
John Scarrott 2025-01-23 09:59:23 +00:00 committed by John Scarrott
parent 5750531cb2
commit 6aaa6abdf6

View File

@ -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. '\.') # 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 " string match -r '.*( |./)$' -- "$current_prompt" || set current_prompt "$current_prompt "
commandline -r "$current_prompt$output" commandline -r "$current_prompt$output"
commandline -f repaint
end end
end end
@ -17,6 +18,7 @@ function tv_shell_history
if test -n "$output" if test -n "$output"
commandline -r "$output" commandline -r "$output"
commandline -f repaint
end end
end end