mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Merge #10520 'PVS/V1037: redundant case-branches'
This commit is contained in:
		| @@ -8453,24 +8453,23 @@ static void ex_tag_cmd(exarg_T *eap, char_u *name) | |||||||
|   int cmd; |   int cmd; | ||||||
|  |  | ||||||
|   switch (name[1]) { |   switch (name[1]) { | ||||||
|   case 'j': cmd = DT_JUMP;              /* ":tjump" */ |   case 'j': cmd = DT_JUMP;              // ":tjump" | ||||||
|     break; |     break; | ||||||
|   case 's': cmd = DT_SELECT;            /* ":tselect" */ |   case 's': cmd = DT_SELECT;            // ":tselect" | ||||||
|     break; |     break; | ||||||
|   case 'p': cmd = DT_PREV;              /* ":tprevious" */ |   case 'p':                             // ":tprevious" | ||||||
|  |   case 'N': cmd = DT_PREV;              // ":tNext" | ||||||
|     break; |     break; | ||||||
|   case 'N': cmd = DT_PREV;              /* ":tNext" */ |   case 'n': cmd = DT_NEXT;              // ":tnext" | ||||||
|     break; |     break; | ||||||
|   case 'n': cmd = DT_NEXT;              /* ":tnext" */ |   case 'o': cmd = DT_POP;               // ":pop" | ||||||
|     break; |     break; | ||||||
|   case 'o': cmd = DT_POP;               /* ":pop" */ |   case 'f':                             // ":tfirst" | ||||||
|  |   case 'r': cmd = DT_FIRST;             // ":trewind" | ||||||
|     break; |     break; | ||||||
|   case 'f':                             /* ":tfirst" */ |   case 'l': cmd = DT_LAST;              // ":tlast" | ||||||
|   case 'r': cmd = DT_FIRST;             /* ":trewind" */ |  | ||||||
|     break; |     break; | ||||||
|   case 'l': cmd = DT_LAST;              /* ":tlast" */ |   default:                              // ":tag" | ||||||
|     break; |  | ||||||
|   default:                              /* ":tag" */ |  | ||||||
|     if (p_cst && *eap->arg != NUL) { |     if (p_cst && *eap->arg != NUL) { | ||||||
|       ex_cstag(eap); |       ex_cstag(eap); | ||||||
|       return; |       return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes