mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +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
|
function __hg
|
||||||
set -x HGPLAIN 1
|
set -lx HGPLAIN 1
|
||||||
command hg $argv ^ /dev/null
|
command hg $argv ^ /dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ function __hg_sources
|
||||||
end
|
end
|
||||||
|
|
||||||
function __hg_mq_enabled
|
function __hg_mq_enabled
|
||||||
set val (__hg showconfig extensions.hgext.mq)
|
set -l val (__hg showconfig extensions.hgext.mq)
|
||||||
if test -z $val
|
if test -z $val
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue