mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user