mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
8c88d98df9
commit
27fd4f31fd
@ -2299,6 +2299,7 @@ static void qf_jump_goto_line(linenr_T qf_lnum, int qf_col, char_u qf_viscol,
|
||||
}
|
||||
}
|
||||
}
|
||||
curwin->w_set_curswant = true;
|
||||
check_cursor();
|
||||
} else {
|
||||
beginline(BL_WHITE | BL_FIX);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user