tweak match
This commit is contained in:
		
							
								
								
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							| @@ -392,7 +392,7 @@ match(void) { | |||||||
| 			appenditem(item, &lsubstr, &substrend); | 			appenditem(item, &lsubstr, &substrend); | ||||||
| 	} | 	} | ||||||
| 	if(lprefix) { | 	if(lprefix) { | ||||||
| 		if(matchend) { | 		if(matches) { | ||||||
| 			matchend->right = lprefix; | 			matchend->right = lprefix; | ||||||
| 			lprefix->left = matchend; | 			lprefix->left = matchend; | ||||||
| 		} | 		} | ||||||
| @@ -401,7 +401,7 @@ match(void) { | |||||||
| 		matchend = prefixend; | 		matchend = prefixend; | ||||||
| 	} | 	} | ||||||
| 	if(lsubstr) { | 	if(lsubstr) { | ||||||
| 		if(matchend) { | 		if(matches) { | ||||||
| 			matchend->right = lsubstr; | 			matchend->right = lsubstr; | ||||||
| 			lsubstr->left = matchend; | 			lsubstr->left = matchend; | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Connor Lane Smith
					Connor Lane Smith