mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.1.0869: Problem: curswant not set on gm in folded line (#31247)
Problem: curswant not set on gm in folded line
(citizenmatt)
Solution: in a folded line, call update_curswant_force()
fixes: vim/vim#11596
closes: vim/vim#11994
closes: vim/vim#15398
9848face74
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5249,6 +5249,12 @@ void nv_g_home_m_cmd(cmdarg_T *cap)
|
||||
curwin->w_valid &= ~VALID_WCOL;
|
||||
}
|
||||
curwin->w_set_curswant = true;
|
||||
if (hasAnyFolding(curwin)) {
|
||||
validate_cheight(curwin);
|
||||
if (curwin->w_cline_folded) {
|
||||
update_curswant_force();
|
||||
}
|
||||
}
|
||||
adjust_skipcol();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user