aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-12 15:54:54 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-13 23:39:56 +0100
commit28f4f3c48498086307ed825d1761edb5789ca0e8 (patch)
tree880d2104092261fe0457b17a9ddda8a6e0f7f2ed /src/nvim/version.c
parent48bcc7b9710d6db619b05254ea87f4087cdd9764 (diff)
downloadrneovim-28f4f3c48498086307ed825d1761edb5789ca0e8.tar.gz
rneovim-28f4f3c48498086307ed825d1761edb5789ca0e8.tar.bz2
rneovim-28f4f3c48498086307ed825d1761edb5789ca0e8.zip
refactor: follow style guide
- reduce variable scope - prefer initialization over declaration and assignment - use bool to represent boolean values
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index d36d6a7346..abcb9d94d2 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -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++) {