aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDongdong Zhou <dzhou121@gmail.com>2017-02-27 02:56:38 +0000
committerBjörn Linse <bjorn.linse@gmail.com>2017-10-26 09:35:12 +0200
commitb7a8a76f6e3b2de1cfdf32e3ccc66d87ab8e5cad (patch)
tree3a97ef9aefabb4643677b24e98ce39729e444669 /src
parent26fd70bd18283701a2ade11407694485cd0f7e35 (diff)
downloadrneovim-b7a8a76f6e3b2de1cfdf32e3ccc66d87ab8e5cad.tar.gz
rneovim-b7a8a76f6e3b2de1cfdf32e3ccc66d87ab8e5cad.tar.bz2
rneovim-b7a8a76f6e3b2de1cfdf32e3ccc66d87ab8e5cad.zip
ext_cmdline: lint
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 18d6b26595..0fae6c9810 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -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(' ');
+ }
+ }
}
/*