mirror of
https://github.com/denisidoro/navi.git
synced 2026-07-17 16:49:25 +00:00
Previously, `repaint` only ran inside the `best_match` and `candidate` branches, so cancelling out of navi (Ctrl+C / Esc) without selecting a snippet would leave the terminal in a clobbered state. Multi-line prompts (e.g. tide with ╭─/╰─ borders) would lose their border characters because fzf overwrites the terminal output and no repaint was triggered to restore it. Move `repaint` to the end of the function so it always runs regardless of whether a selection was made, the user cancelled, or no matches were found. Remove the early `return` from the `best_match` branch and gate the `candidate` fallback with `test -z "$best_match"` instead. |
||
|---|---|---|
| .. | ||
| navi.plugin.bash | ||
| navi.plugin.elv | ||
| navi.plugin.fish | ||
| navi.plugin.nu | ||
| navi.plugin.ps1 | ||
| navi.plugin.zsh | ||