Skip to content
Snippets Groups Projects
Commit 59200a2d authored by Jonas Diemer's avatar Jonas Diemer
Browse files

Fixed bash completion for filenames containing spaces.

parent 5e5ce714
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
_hg_status() _hg_status()
{ {
local files="$("$hg" status -n$1 . 2>/dev/null)" local files="$("$hg" status -n$1 . 2>/dev/null)"
local IFS=$'\n'
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment