mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
refactor: follow style guide
- reduce variable scope - prefer initialization over declaration and assignment - use bool to represent boolean values
This commit is contained in:
@@ -2837,7 +2837,6 @@ void intro_message(int colon)
|
||||
|
||||
static void do_intro_line(int row, char *mesg, int attr)
|
||||
{
|
||||
char *p;
|
||||
int l;
|
||||
|
||||
// Center the message horizontally.
|
||||
@@ -2851,7 +2850,7 @@ static void do_intro_line(int row, char *mesg, int attr)
|
||||
|
||||
grid_line_start(&default_grid, row);
|
||||
// Split up in parts to highlight <> items differently.
|
||||
for (p = mesg; *p != NUL; p += l) {
|
||||
for (char *p = mesg; *p != NUL; p += l) {
|
||||
for (l = 0;
|
||||
p[l] != NUL && (l == 0 || (p[l] != '<' && p[l - 1] != '>'));
|
||||
l++) {
|
||||
|
Reference in New Issue
Block a user