mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
vim-patch:8.0.1151: "vim -c startinsert!" doesn't append (#8886)
Problem: "vim -c startinsert!" doesn't append.
Solution: Correct line number on startup. (Christian Brabandt, closes vim/vim#2117)
09ca932f8e
This commit is contained in:

committed by
Justin M. Keyes

parent
a466bd2927
commit
012cd35bfb
@@ -8154,6 +8154,10 @@ static void ex_normal(exarg_T *eap)
|
||||
static void ex_startinsert(exarg_T *eap)
|
||||
{
|
||||
if (eap->forceit) {
|
||||
// cursor line can be zero on startup
|
||||
if (!curwin->w_cursor.lnum) {
|
||||
curwin->w_cursor.lnum = 1;
|
||||
}
|
||||
coladvance((colnr_T)MAXCOL);
|
||||
curwin->w_curswant = MAXCOL;
|
||||
curwin->w_set_curswant = FALSE;
|
||||
|
Reference in New Issue
Block a user