From fcc5b8c34c7e6185170da3a0acb5583333cc151e Mon Sep 17 00:00:00 2001 From: Jeffrey Faer Date: Fri, 19 Apr 2024 23:25:37 -0600 Subject: [PATCH] fix: We don't need an extra empty character when we're doing proper quoting. --- bash_completionsV2.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bash_completionsV2.go b/bash_completionsV2.go index cf3a361c..98c56968 100644 --- a/bash_completionsV2.go +++ b/bash_completionsV2.go @@ -68,13 +68,6 @@ __%[1]s_get_completion_results() { lastChar=${lastParam:$((${#lastParam}-1)):1} __%[1]s_debug "lastParam ${lastParam}, lastChar ${lastChar}" - if [[ -z ${cur} && ${lastChar} != = ]]; then - # If the last parameter is complete (there is a space following it) - # We add an extra empty parameter so we can indicate this to the go method. - __%[1]s_debug "Adding extra empty parameter" - requestComp="${requestComp} ''" - fi - # When completing a flag with an = (e.g., %[1]s -n=) # bash focuses on the part after the =, so we need to remove # the flag part from $cur