Use local scope for variables in Mercurial completion functions.

This commit is contained in:
Daniel Matz 2014-02-22 13:59:18 -06:00 committed by ridiculousfish
parent d74a23e583
commit 2bdfac2036

View File

@ -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