selection: fix view to match actual selection on first cell
This commit is contained in:
		
				
					committed by
					
						 Hiltjo Posthuma
						Hiltjo Posthuma
					
				
			
			
				
	
			
			
			
						parent
						
							21367a040f
						
					
				
				
					commit
					f1546cf9c1
				
			
							
								
								
									
										2
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
									
									
									
									
								
							| @@ -458,7 +458,7 @@ selextend(int col, int row, int type, int done) | |||||||
| 	selnormalize(); | 	selnormalize(); | ||||||
| 	sel.type = type; | 	sel.type = type; | ||||||
|  |  | ||||||
| 	if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type) | 	if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type || sel.mode == SEL_EMPTY) | ||||||
| 		tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); | 		tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); | ||||||
|  |  | ||||||
| 	sel.mode = done ? SEL_IDLE : SEL_READY; | 	sel.mode = done ? SEL_IDLE : SEL_READY; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user