summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-24 00:09:02 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-24 00:09:02 +0000
commit24fe33a83a5130a5369f06d88000a3a0590a59ec (patch)
treeced9a9caae2018ee4daf04defd1feac80d1e2088 /src/main.c
parentb59ae59a58706e454ef8c78276f021b1f58466e7 (diff)
downloadvim-git-24fe33a83a5130a5369f06d88000a3a0590a59ec.tar.gz
patch 9.0.0934: various code formatting issuesv9.0.0934
Problem: Various code formatting issues. Solution: Improve code formatting.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index 3a050cf5b..ca28eca72 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1298,16 +1298,15 @@ main_loop(
#endif
// Trigger CursorMoved if the cursor moved.
- if (!finish_op && (
- has_cursormoved()
+ if (!finish_op && (has_cursormoved()
#ifdef FEAT_PROP_POPUP
- || popup_visible
+ || popup_visible
#endif
#ifdef FEAT_CONCEAL
- || curwin->w_p_cole > 0
+ || curwin->w_p_cole > 0
#endif
- )
- && !EQUAL_POS(last_cursormoved, curwin->w_cursor))
+ )
+ && !EQUAL_POS(last_cursormoved, curwin->w_cursor))
{
if (has_cursormoved())
apply_autocmds(EVENT_CURSORMOVED, NULL, NULL,
@@ -1401,10 +1400,8 @@ main_loop(
}
#endif
- /*
- * Before redrawing, make sure w_topline is correct, and w_leftcol
- * if lines don't wrap, and w_skipcol if lines wrap.
- */
+ // Before redrawing, make sure w_topline is correct, and w_leftcol
+ // if lines don't wrap, and w_skipcol if lines wrap.
update_topline();
validate_cursor();