mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 21:45:49 +08:00
Use local scope for variables in Mercurial completion functions.
This commit is contained in:
parent
d74a23e583
commit
2bdfac2036
|
@ -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 New Issue
Block a user