mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 01:22:45 +08: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:
parent
f922875dbc
commit
5c56765d12
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user