mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 03:35:02 -07:00
Merge #10520 'PVS/V1037: redundant case-branches'
This commit is contained in:
commit
583c35714c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user