0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0934: various code formatting issues

Problem:    Various code formatting issues.
Solution:   Improve code formatting.
This commit is contained in:
Bram Moolenaar
2022-11-24 00:09:02 +00:00
parent b59ae59a58
commit 24fe33a83a
9 changed files with 41 additions and 40 deletions

View File

@@ -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();