aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-12 14:53:40 +0100
committerGitHub <noreply@github.com>2022-10-12 14:53:40 +0100
commit0ef6aaa3a73d5089bf53e804364950c81784574c (patch)
treeb74efe8683f2a6a8257ed31725244d749d229274 /src/nvim/ex_cmds.c
parent024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7 (diff)
downloadrneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.gz
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.bz2
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.zip
refactor: clint (#20600)
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index ea51cac163..781463b881 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -266,13 +266,12 @@ void ex_align(exarg_T *eap)
}
for (curwin->w_cursor.lnum = eap->line1;
- curwin->w_cursor.lnum <= eap->line2; ++curwin->w_cursor.lnum) {
+ curwin->w_cursor.lnum <= eap->line2; curwin->w_cursor.lnum++) {
if (eap->cmdidx == CMD_left) { // left align
new_indent = indent;
} else {
has_tab = false; // avoid uninit warnings
- len = linelen(eap->cmdidx == CMD_right ? &has_tab
- : NULL) - get_indent();
+ len = linelen(eap->cmdidx == CMD_right ? &has_tab : NULL) - get_indent();
if (len <= 0) { // skip blank lines
continue;