From 4f5162a8037360653ee33697c645512fda8042f9 Mon Sep 17 00:00:00 2001 From: dkmar Date: Sun, 6 Apr 2025 23:37:37 -0700 Subject: [PATCH] fix: silence the `string match` in tv_smart_autocomplete --- television/utils/shell/completion.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/television/utils/shell/completion.fish b/television/utils/shell/completion.fish index dee2851..c02cb00 100644 --- a/television/utils/shell/completion.fish +++ b/television/utils/shell/completion.fish @@ -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