fixed some minor bugs
This commit is contained in:
		
							parent
							
								
									9e9294231e
								
							
						
					
					
						commit
						5a249d54d4
					
				| 
						 | 
					@ -356,11 +356,13 @@
 | 
				
			||||||
  (lambda (num-cols pos-col line)
 | 
					  (lambda (num-cols pos-col line)
 | 
				
			||||||
    (let* ((lines (ceiling (/ (string-length line) num-cols)))
 | 
					    (let* ((lines (ceiling (/ (string-length line) num-cols)))
 | 
				
			||||||
	   (end-pos (* lines num-cols)))
 | 
						   (end-pos (* lines num-cols)))
 | 
				
			||||||
      (let loop ((offset 0)
 | 
					      (if (= (string-length line) 0)
 | 
				
			||||||
		 (end end-pos))
 | 
						  0
 | 
				
			||||||
	(if (< (+ end 2) pos-col)
 | 
						  (let loop ((offset 0)
 | 
				
			||||||
	    (- offset 1)
 | 
							     (end end-pos))
 | 
				
			||||||
	    (loop (+ offset 1) (- end num-cols)))))))
 | 
						    (if (<= (+ end 2) pos-col)
 | 
				
			||||||
 | 
							(- offset 1)
 | 
				
			||||||
 | 
							(loop (+ offset 1) (- end num-cols))))))))
 | 
				
			||||||
		 
 | 
							 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	       
 | 
						       
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue