replace fallthrough comment with macro

Follow-up of vim-patch:8.0.1215
This commit is contained in:
Jan Edmund Lazo
2018-09-20 23:57:06 -04:00
parent 6a329b0548
commit 300a7a4cf4
13 changed files with 61 additions and 60 deletions

View File

@@ -4202,12 +4202,12 @@ dozet:
else
curwin->w_cursor.lnum = curwin->w_botline;
}
/* FALLTHROUGH */
FALLTHROUGH;
case NL:
case CAR:
case K_KENTER:
beginline(BL_WHITE | BL_FIX);
/* FALLTHROUGH */
FALLTHROUGH;
case 't': scroll_cursor_top(0, true);
redraw_later(VALID);
@@ -4216,7 +4216,7 @@ dozet:
/* "z." and "zz": put cursor in middle of screen */
case '.': beginline(BL_WHITE | BL_FIX);
/* FALLTHROUGH */
FALLTHROUGH;
case 'z': scroll_cursor_halfway(true);
redraw_later(VALID);
@@ -4234,10 +4234,10 @@ dozet:
curwin->w_cursor.lnum = 1;
else
curwin->w_cursor.lnum = curwin->w_topline - 1;
/* FALLTHROUGH */
FALLTHROUGH;
case '-':
beginline(BL_WHITE | BL_FIX);
/* FALLTHROUGH */
FALLTHROUGH;
case 'b': scroll_cursor_bot(0, true);
redraw_later(VALID);
@@ -4247,7 +4247,7 @@ dozet:
/* "zH" - scroll screen right half-page */
case 'H':
cap->count1 *= curwin->w_width / 2;
/* FALLTHROUGH */
FALLTHROUGH;
/* "zh" - scroll screen to the right */
case 'h':
@@ -4263,7 +4263,7 @@ dozet:
/* "zL" - scroll screen left half-page */
case 'L': cap->count1 *= curwin->w_width / 2;
/* FALLTHROUGH */
FALLTHROUGH;
/* "zl" - scroll screen to the left */
case 'l':
@@ -6663,7 +6663,7 @@ static void nv_g_cmd(cmdarg_T *cap)
*/
case K_BS:
cap->nchar = Ctrl_H;
/* FALLTHROUGH */
FALLTHROUGH;
case 'h':
case 'H':
case Ctrl_H:
@@ -6729,7 +6729,7 @@ static void nv_g_cmd(cmdarg_T *cap)
*/
case '^':
flag = true;
/* FALLTHROUGH */
FALLTHROUGH;
case '0':
case 'm':