Skip to content

Commit 5877c94

Browse files
committed
Fix trailing whitespaces in fish comp scripts
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent c772dd8 commit 5877c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fish_completions.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ function __%[1]s_prepare_completions
152152
# We don't need descriptions anyway since there is only a single
153153
# real completion which the shell will expand immediately.
154154
set -l split (string split --max 1 \t $__%[1]s_comp_results[1])
155-
155+
156156
# Fish won't add a space if the completion ends with any
157157
# of the following characters: @=/:.,
158158
set -l lastChar (string sub -s -1 -- $split)
159-
if not string match -r -q "[@=/:.,]" -- "$lastChar"
159+
if not string match -r -q "[@=/:.,]" -- "$lastChar"
160160
# In other cases, to support the "nospace" directive we trick the shell
161161
# by outputting an extra, longer completion.
162162
__%[1]s_debug "Adding second completion to perform nospace directive"

0 commit comments

Comments
 (0)