Use BETWEEN in tinsertblankline and tdeleteline.
This commit is contained in:
		
				
					committed by
					
						 Roberto E. Vargas Caballero
						Roberto E. Vargas Caballero
					
				
			
			
				
	
			
			
			
						parent
						
							87abc7cd59
						
					
				
				
					commit
					f21e47f44a
				
			
							
								
								
									
										8
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								st.c
									
									
									
									
									
								
							| @ -1628,17 +1628,13 @@ tinsertblank(int n) { | ||||
|  | ||||
| void | ||||
| tinsertblankline(int n) { | ||||
| 	if(term.c.y < term.top || term.c.y > term.bot) | ||||
| 		return; | ||||
|  | ||||
| 	if(BETWEEN(term.c.y, term.top, term.bot)) | ||||
| 		tscrolldown(term.c.y, n); | ||||
| } | ||||
|  | ||||
| void | ||||
| tdeleteline(int n) { | ||||
| 	if(term.c.y < term.top || term.c.y > term.bot) | ||||
| 		return; | ||||
|  | ||||
| 	if(BETWEEN(term.c.y, term.top, term.bot)) | ||||
| 		tscrollup(term.c.y, n); | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user