mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
fix: silence the string match
in tv_smart_autocomplete (#449)
This commit is contained in:
parent
4892dc3c3c
commit
d4913d73f6
@ -5,7 +5,7 @@ function tv_smart_autocomplete
|
||||
|
||||
if test -n "$output"
|
||||
# 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 -q -r '.*( |./)$' -- "$current_prompt" || set current_prompt "$current_prompt "
|
||||
commandline -r "$current_prompt$output"
|
||||
commandline -f repaint
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user