mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:8.1.0289: cursor moves to wrong column after quickfix jump
Problem: Cursor moves to wrong column after quickfix jump.
Solution: Set the curswant flag. (Andy Massimino, closes vim/vim#3331)
2dfcef4c08
This commit is contained in:
@@ -3566,3 +3566,12 @@ func Test_view_result_split()
|
||||
call Xview_result_split_tests('c')
|
||||
call Xview_result_split_tests('l')
|
||||
endfunc
|
||||
|
||||
" Test that :cc sets curswant
|
||||
func Test_curswant()
|
||||
helpgrep quickfix
|
||||
normal! llll
|
||||
1cc
|
||||
call assert_equal(getcurpos()[4], virtcol('.'))
|
||||
cclose | helpclose
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user