mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
42037: COMP_POINT for bash completion was miscalculated.
This commit is contained in:
parent
09939216d4
commit
e2f793e7df
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-11-20 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Evan Underscore / pws: 42037: Completion/bashcompinit: recent
|
||||
change caused wrong word to be used for COMP_POINT.
|
||||
|
||||
2017-11-13 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 42019: Completion/Unix/Command/_git: update options to 2.15
|
||||
|
|
|
@ -8,7 +8,7 @@ _bash_complete() {
|
|||
local -x COMP_LINE="$words"
|
||||
local -A savejobstates savejobtexts
|
||||
|
||||
(( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX ))
|
||||
(( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT-1]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX ))
|
||||
(( COMP_CWORD = CURRENT - 1))
|
||||
COMP_WORDS=( $words )
|
||||
BASH_VERSINFO=( 2 05b 0 1 release )
|
||||
|
|
Loading…
Reference in a new issue