vim-patch:9.0.1545: text not scrolled when cursor moved with "g0" and "h" (#23599)

Problem:    Text not scrolled when cursor moved with "g0" and "h".
Solution:   Adjust w_skipcol when needed. (Luuk van Baal, closes vim/vim#12387)

8667a5678f
This commit is contained in:
luukvbaal
2023-05-13 02:15:01 +02:00
committed by GitHub
parent 2835b0daad
commit a6d63591f1
3 changed files with 14 additions and 0 deletions

View File

@@ -2527,6 +2527,7 @@ int oneleft(void)
}
curwin->w_set_curswant = true;
adjust_skipcol();
return OK;
}

View File

@@ -5272,6 +5272,7 @@ static void nv_g_home_m_cmd(cmdarg_T *cap)
curwin->w_valid &= ~VALID_WCOL;
}
curwin->w_set_curswant = true;
adjust_skipcol();
}
/// "g_": to the last non-blank character in the line or <count> lines downward.