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

@@ -851,7 +851,7 @@ static int insert_handle_key(InsertState *s)
if (mod_mask != MOD_MASK_CTRL) {
goto normalchar;
}
// FALLTHROUGH
FALLTHROUGH;
case K_ZERO: // Insert the previously inserted text.
case NUL:
case Ctrl_A:
@@ -890,7 +890,7 @@ static int insert_handle_key(InsertState *s)
insert_do_complete(s);
break;
}
// FALLTHROUGH
FALLTHROUGH;
case Ctrl_T: // Make indent one shiftwidth greater.
if (s->c == Ctrl_T && ctrl_x_mode == CTRL_X_THESAURUS) {
@@ -1062,7 +1062,7 @@ static int insert_handle_key(InsertState *s)
case K_S_TAB: // When not mapped, use like a normal TAB
s->c = TAB;
// FALLTHROUGH
FALLTHROUGH;
case TAB: // TAB or Complete patterns along path
if (ctrl_x_mode == CTRL_X_PATH_PATTERNS) {
@@ -1078,7 +1078,7 @@ static int insert_handle_key(InsertState *s)
case K_KENTER: // <Enter>
s->c = CAR;
// FALLTHROUGH
FALLTHROUGH;
case CAR:
case NL:
// In a quickfix window a <CR> jumps to the error under the
@@ -1157,7 +1157,7 @@ static int insert_handle_key(InsertState *s)
}
goto normalchar;
}
// FALLTHROUGH
FALLTHROUGH;
case Ctrl_P: // Do previous/next pattern completion
case Ctrl_N:
@@ -3269,7 +3269,7 @@ static bool ins_compl_prep(int c)
compl_cont_status |= CONT_LOCAL;
else if (compl_cont_mode != 0)
compl_cont_status &= ~CONT_LOCAL;
/* FALLTHROUGH */
FALLTHROUGH;
default:
/* If we have typed at least 2 ^X's... for modes != 0, we set
* compl_cont_status = 0 (eg, as if we had just started ^X
@@ -7370,7 +7370,7 @@ static bool ins_start_select(int c)
case K_KPAGEDOWN:
if (!(mod_mask & MOD_MASK_SHIFT))
break;
// FALLTHROUGH
FALLTHROUGH;
case K_S_LEFT:
case K_S_RIGHT:
case K_S_UP: