mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
ext_cmdline: add tests
This commit is contained in:

committed by
Björn Linse

parent
6e90bc7200
commit
26fd70bd18
@@ -283,9 +283,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
|
||||
if (!cmd_silent) {
|
||||
s->i = msg_scrolled;
|
||||
msg_scrolled = 0; // avoid wait_return message
|
||||
if (!cmdline_external) {
|
||||
gotocmdline(true);
|
||||
}
|
||||
gotocmdline(true);
|
||||
msg_scrolled += s->i;
|
||||
redrawcmdprompt(); // draw prompt or indent
|
||||
set_cmdspos();
|
||||
@@ -808,7 +806,9 @@ static int command_line_execute(VimState *state, int key)
|
||||
}
|
||||
|
||||
if (!cmd_silent) {
|
||||
ui_cursor_goto(msg_row, 0);
|
||||
if (!cmdline_external) {
|
||||
ui_cursor_goto(msg_row, 0);
|
||||
}
|
||||
ui_flush();
|
||||
}
|
||||
return 0;
|
||||
@@ -3210,6 +3210,9 @@ static void cursorcmd(void)
|
||||
|
||||
void gotocmdline(int clr)
|
||||
{
|
||||
if (cmdline_external) {
|
||||
return;
|
||||
}
|
||||
msg_start();
|
||||
if (cmdmsg_rl)
|
||||
msg_col = Columns - 1;
|
||||
|
Reference in New Issue
Block a user