From d4913d73f61d13bdfba67c246845c0849a3caf0c Mon Sep 17 00:00:00 2001 From: Daniel Mar Date: Mon, 7 Apr 2025 00:48:41 -0700 Subject: [PATCH] fix: silence the `string match` in tv_smart_autocomplete (#449) --- 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