fix tab problem in text%
Merge to 5.2
This commit is contained in:
parent
770c2d14f8
commit
5fb2f56fdf
|
@ -702,7 +702,7 @@
|
|||
[tabs null])
|
||||
(set-box! tabs (send admin get-tabs n space units?))
|
||||
(values n
|
||||
tabs ;; this should be a vector, right?
|
||||
tabs ;; a list
|
||||
space
|
||||
(if units?
|
||||
1
|
||||
|
@ -714,12 +714,12 @@
|
|||
(if (= i n)
|
||||
(let ([base (if (zero? n)
|
||||
0
|
||||
(vector-ref tabs (- n 1)))])
|
||||
(list-ref tabs (- n 1)))])
|
||||
(let ([tabspace (* tabspace mult)])
|
||||
(+ base (- (->long tabspace)
|
||||
(modulo (->long (- ex base))
|
||||
(->long tabspace))))))
|
||||
(let ([v (vector-ref tabs i)])
|
||||
(let ([v (list-ref tabs i)])
|
||||
(if ((* mult v) . > . ex)
|
||||
(- (* mult v) ex)
|
||||
(loop (add1 i))))))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user