forked from aniani/vim
patch 9.1.1338: Calling expand() interferes with cmdcomplete_info()
Problem: Calling expand() interferes with cmdcomplete_info() (after 9.1.1329). Solution: Only clear cmdline_orig when starting/ending cmdline mode (zeertzjq). closes: #17192 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1343681aba
commit
ec270a5f55
@@ -4268,10 +4268,12 @@ func Test_cd_bslash_completion_windows()
|
||||
let &shellslash = save_shellslash
|
||||
endfunc
|
||||
|
||||
" Testg cmdcomplete_info() with CmdlineLeavePre autocmd
|
||||
" Test cmdcomplete_info() with CmdlineLeavePre autocmd
|
||||
func Test_cmdcomplete_info()
|
||||
augroup test_CmdlineLeavePre
|
||||
autocmd!
|
||||
" Calling expand() should not interfere with cmdcomplete_info().
|
||||
autocmd CmdlineLeavePre * call expand('test_cmdline.*')
|
||||
autocmd CmdlineLeavePre * let g:cmdcomplete_info = string(cmdcomplete_info())
|
||||
augroup END
|
||||
new
|
||||
|
Reference in New Issue
Block a user