mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Use local scope for variables in Mercurial completion functions.
This commit is contained in:
parent
d74a23e583
commit
2bdfac2036
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
function __hg
|
||||
set -x HGPLAIN 1
|
||||
set -lx HGPLAIN 1
|
||||
command hg $argv ^ /dev/null
|
||||
end
|
||||
|
||||
|
@ -245,7 +245,7 @@ function __hg_sources
|
|||
end
|
||||
|
||||
function __hg_mq_enabled
|
||||
set val (__hg showconfig extensions.hgext.mq)
|
||||
set -l val (__hg showconfig extensions.hgext.mq)
|
||||
if test -z $val
|
||||
return 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue