patch 9.0.1234: the code style has to be checked manually
Problem: The code style has to be checked manually.
Solution: Add basic code style checks in a test. Fix or avoid uncovered
problems.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 32c7287..7fd0952 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -722,7 +722,8 @@
{
mark_adjust_nofold(line2 + 1, dest, -num_lines, 0L);
#ifdef FEAT_FOLDING
- FOR_ALL_TAB_WINDOWS(tp, win) {
+ FOR_ALL_TAB_WINDOWS(tp, win)
+ {
if (win->w_buffer == curbuf)
foldMoveRange(&win->w_folds, line1, line2, dest);
}
@@ -737,7 +738,8 @@
{
mark_adjust_nofold(dest + 1, line1 - 1, num_lines, 0L);
#ifdef FEAT_FOLDING
- FOR_ALL_TAB_WINDOWS(tp, win) {
+ FOR_ALL_TAB_WINDOWS(tp, win)
+ {
if (win->w_buffer == curbuf)
foldMoveRange(&win->w_folds, dest + 1, line1 - 1, line2);
}