mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-11 01:36:03 +02:00
30081: make _main_complete independent of IGNORE_CLOSE_BRACES option
This commit is contained in:
parent
1a330ad751
commit
432112c425
|
@ -3,6 +3,10 @@
|
|||
# The main loop of the completion code. This is what is called when
|
||||
# completion is attempted from the command line.
|
||||
|
||||
# Note that this function is parsed before $_comp_setup is evaluated,
|
||||
# so that it should make conservative assumptions about the setting
|
||||
# of the various options that affect parsing.
|
||||
|
||||
# In case non-standard separators are in use.
|
||||
local IFS=$' \t\n\0'
|
||||
|
||||
|
@ -52,9 +56,12 @@ if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
|
|||
fi
|
||||
|
||||
if [[ "$compstate[insert]" = tab* ]]; then
|
||||
{ [[ "$tmp" = (|*[[:blank:]])(yes|true|on|1)(|[[:blank:]]*) ]] &&
|
||||
{ [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
|
||||
zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
|
||||
if [[ "$tmp" = (|*[[:blank:]])(yes|true|on|1)(|[[:blank:]]*) ]]; then
|
||||
if [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
|
||||
zstyle -t ":completion:vared${curcontext}:" insert-tab; then
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
compstate[insert]="${compstate[insert]//tab /}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue