mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
Merge #6539 'More cursor shape modes'
This commit is contained in:
@@ -354,6 +354,7 @@ static int command_line_check(VimState *state)
|
||||
quit_more = false; // reset after CTRL-D which had a more-prompt
|
||||
|
||||
cursorcmd(); // set the cursor on the right spot
|
||||
ui_cursor_shape();
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -2095,6 +2096,18 @@ redraw:
|
||||
return (char_u *)line_ga.ga_data;
|
||||
}
|
||||
|
||||
bool cmdline_overstrike(void)
|
||||
{
|
||||
return ccline.overstrike;
|
||||
}
|
||||
|
||||
|
||||
/// Return true if the cursor is at the end of the cmdline.
|
||||
bool cmdline_at_end(void)
|
||||
{
|
||||
return (ccline.cmdpos >= ccline.cmdlen);
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate a new command line buffer.
|
||||
* Assigns the new buffer to ccline.cmdbuff and ccline.cmdbufflen.
|
||||
@@ -2265,6 +2278,7 @@ void putcmdline(int c, int shift)
|
||||
draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos);
|
||||
msg_no_more = FALSE;
|
||||
cursorcmd();
|
||||
ui_cursor_shape();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2284,6 +2298,7 @@ void unputcmdline(void)
|
||||
draw_cmdline(ccline.cmdpos, 1);
|
||||
msg_no_more = FALSE;
|
||||
cursorcmd();
|
||||
ui_cursor_shape();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2601,6 +2616,7 @@ void redrawcmdline(void)
|
||||
compute_cmdrow();
|
||||
redrawcmd();
|
||||
cursorcmd();
|
||||
ui_cursor_shape();
|
||||
}
|
||||
|
||||
static void redrawcmdprompt(void)
|
||||
|
Reference in New Issue
Block a user