fix a regression in the previous commit for tab complete
Reported by Santtu Lakkala <inz@inz.fi>, thanks!
This commit is contained in:
		
							
								
								
									
										2
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dmenu.c
									
									
									
									
									
								
							@@ -519,7 +519,7 @@ insert:
 | 
				
			|||||||
			return;
 | 
								return;
 | 
				
			||||||
		cursor = strnlen(sel->text, sizeof text - 1);
 | 
							cursor = strnlen(sel->text, sizeof text - 1);
 | 
				
			||||||
		memcpy(text, sel->text, cursor);
 | 
							memcpy(text, sel->text, cursor);
 | 
				
			||||||
		text[sizeof text - 1] = '\0';
 | 
							text[cursor] = '\0';
 | 
				
			||||||
		match();
 | 
							match();
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user