fix: silence the string match in tv_smart_autocomplete (#449)

This commit is contained in:
Daniel Mar 2025-04-07 00:48:41 -07:00 committed by GitHub
parent 4892dc3c3c
commit d4913d73f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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