Repository: alexpasmantier/television (language: rust)

Issue:
Prompt corrupted after using ctrl+t
**Description**
After using tv to select something and returning to the prompt it is slightly corrupted.

**Example**
[![asciicast](https://asciinema.org/a/riZfSYK6nEcTGE4Caej5eMKat.svg)](https://asciinema.org/a/riZfSYK6nEcTGE4Caej5eMKat)

**Expected behavior**
Prompt displays as normal

**Actual behavior**
Some of the last line is duplicated and it just looks wrong.

**Environment**
 - OS: Arch Linux 
 - Rust version: 1.84.0
 - Project version: 0.9.4
 - Shell: Fish
 - Happens using Kitty and alacritty, doesn't;t happen if I switch to bash

**Additional context**
Any other context about the bug here.



Discussion / hints:
I believe this can be fixed by adding ```commandline -f repaint``` into the fish scripts. I may make a PR for this fix if I get a chance.

Fix patch:
diff --git a/crates/television-utils/shell/completion.fish b/crates/television-utils/shell/completion.fish
index f828c662..9c38bfce 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
 


Test patch: