mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
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.
This commit is contained in:
parent
5750531cb2
commit
cb565d667e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user