mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0869: Problem: curswant not set on gm in folded line
Problem: curswant not set on gm in folded line (citizenmatt) Solution: in a folded line, call update_curswant_force() fixes: #11596 closes: #11994 closes: #15398 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5785,6 +5785,14 @@ nv_g_home_m_cmd(cmdarg_T *cap)
|
||||
curwin->w_valid &= ~VALID_WCOL;
|
||||
}
|
||||
curwin->w_set_curswant = TRUE;
|
||||
#ifdef FEAT_FOLDING
|
||||
if (hasAnyFolding(curwin))
|
||||
{
|
||||
validate_cheight();
|
||||
if (curwin->w_cline_folded)
|
||||
update_curswant_force();
|
||||
}
|
||||
#endif
|
||||
adjust_skipcol();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user