mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
ext_cmdline: lint
This commit is contained in:

committed by
Björn Linse

parent
26fd70bd18
commit
b7a8a76f6e
@@ -3121,13 +3121,16 @@ static void redrawcmdprompt(void)
|
||||
} else {
|
||||
msg_puts_attr((const char *)ccline.cmdprompt, ccline.cmdattr);
|
||||
ccline.cmdindent = msg_col + (msg_row - cmdline_row) * Columns;
|
||||
/* do the reverse of set_cmdspos() */
|
||||
if (ccline.cmdfirstc != NUL)
|
||||
--ccline.cmdindent;
|
||||
// do the reverse of set_cmdspos()
|
||||
if (ccline.cmdfirstc != NUL) {
|
||||
ccline.cmdindent--;
|
||||
}
|
||||
}
|
||||
} else
|
||||
for (i = ccline.cmdindent; i > 0; --i)
|
||||
} else {
|
||||
for (i = ccline.cmdindent; i > 0; i--) {
|
||||
msg_putchar(' ');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user