Merge #10520 'PVS/V1037: redundant case-branches'

This commit is contained in:
Justin M. Keyes 2019-07-16 11:32:35 +02:00
commit 583c35714c

View File

@ -8453,24 +8453,23 @@ static void ex_tag_cmd(exarg_T *eap, char_u *name)
int cmd;
switch (name[1]) {
case 'j': cmd = DT_JUMP; /* ":tjump" */
case 'j': cmd = DT_JUMP; // ":tjump"
break;
case 's': cmd = DT_SELECT; /* ":tselect" */
case 's': cmd = DT_SELECT; // ":tselect"
break;
case 'p': cmd = DT_PREV; /* ":tprevious" */
case 'p': // ":tprevious"
case 'N': cmd = DT_PREV; // ":tNext"
break;
case 'N': cmd = DT_PREV; /* ":tNext" */
case 'n': cmd = DT_NEXT; // ":tnext"
break;
case 'n': cmd = DT_NEXT; /* ":tnext" */
case 'o': cmd = DT_POP; // ":pop"
break;
case 'o': cmd = DT_POP; /* ":pop" */
case 'f': // ":tfirst"
case 'r': cmd = DT_FIRST; // ":trewind"
break;
case 'f': /* ":tfirst" */
case 'r': cmd = DT_FIRST; /* ":trewind" */
case 'l': cmd = DT_LAST; // ":tlast"
break;
case 'l': cmd = DT_LAST; /* ":tlast" */
break;
default: /* ":tag" */
default: // ":tag"
if (p_cst && *eap->arg != NUL) {
ex_cstag(eap);
return;