hg prompt: fix infinite loop due to incorrect scoping

4b079e16e5 fixed some unintended behaviour
which the hg prompt was apparently relying upon, producing an infinite
loop whenever called.
This commit is contained in:
David Adam 2018-04-02 21:24:50 +08:00
parent f922875dbc
commit 5c56765d12

View File

@ -37,7 +37,7 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
break
end
# Go up one directory
set -l dir (string replace -r '[^/]*/?$' '' $dir)
set dir (string replace -r '[^/]*/?$' '' $dir)
end
if test -z "$root"