mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
vim-patch:8.2.4953: with 'si' inserting '}' after completion goes wrong
Problem: With 'smartindent' inserting '}' after completion goes wrong.
Solution: Check the cursor is in indent. (closes vim/vim#10420)
2e444bbef0
This commit is contained in:
@@ -67,6 +67,11 @@ func Test_si_after_completion()
|
||||
call setline(1, 'foo foot')
|
||||
call feedkeys("o f\<C-X>\<C-N>#", 'tx')
|
||||
call assert_equal(' foo#', getline(2))
|
||||
|
||||
call setline(2, '')
|
||||
call feedkeys("1Go f\<C-X>\<C-N>}", 'tx')
|
||||
call assert_equal(' foo}', getline(2))
|
||||
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user