0
0
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:
Christian Brabandt
2024-11-17 16:18:00 +01:00
parent 8b94afc207
commit 9848face74
3 changed files with 58 additions and 2 deletions

View File

@@ -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();
}