limit direction keys in vline
This commit is contained in:
		
							
								
								
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							@@ -328,6 +328,8 @@ keypress(XKeyEvent *ev) {
 | 
			
		||||
			cursor = nextrune(-1);
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		if(lines > 0)
 | 
			
		||||
			return;
 | 
			
		||||
		/* fallthrough */
 | 
			
		||||
	case XK_Up:
 | 
			
		||||
		if(sel && sel->left && (sel = sel->left)->right == curr) {
 | 
			
		||||
@@ -356,6 +358,8 @@ keypress(XKeyEvent *ev) {
 | 
			
		||||
			cursor = nextrune(+1);
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		if(lines > 0)
 | 
			
		||||
			return;
 | 
			
		||||
		/* fallthrough */
 | 
			
		||||
	case XK_Down:
 | 
			
		||||
		if(sel && sel->right && (sel = sel->right) == next) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user