Skip to content

Commit fbe4511

Browse files
felipecgitster
authored andcommitted
completion: add space after completed filename
Just like before fea16b4 (git-completion.bash: add support for path completion). Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ffa4df commit fbe4511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ __gitcomp_file ()
255255
__gitcompadd "$1" "${2-}" "${3-$cur}" ""
256256

257257
# use a hack to enable file mode in bash < 4
258-
compopt -o filenames 2>/dev/null ||
258+
compopt -o filenames +o nospace 2>/dev/null ||
259259
compgen -f /non-existing-dir/ > /dev/null
260260
}
261261

0 commit comments

Comments
 (0)