mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +03:00
Fixed off-by-one error when doing %lin wrapping.
This commit is contained in:
parent
de061524cf
commit
80b4278554
@ -2067,13 +2067,13 @@
|
||||
=/ txt (tuba (trip msg.sep))
|
||||
|- ^- (list tape)
|
||||
?~ txt ~
|
||||
=/ end
|
||||
?: (lte (lent txt) wyd) (lent txt)
|
||||
=+ ^- {end/@ud nex/?}
|
||||
?: (lte (lent txt) wyd) [(lent txt) &]
|
||||
=+ ace=(find " " (flop (scag +(wyd) `(list @c)`txt)))
|
||||
?~ ace wyd
|
||||
(sub wyd u.ace)
|
||||
?~ ace [wyd |]
|
||||
[(sub wyd u.ace) &]
|
||||
:- (weld pef (tufa (scag end `(list @c)`txt)))
|
||||
$(txt (slag +(end) `(list @c)`txt), pef (reap (lent pef) ' '))
|
||||
$(txt (slag ?:(nex +(end) end) `(list @c)`txt), pef (reap (lent pef) ' '))
|
||||
::
|
||||
$inv
|
||||
:_ ~
|
||||
|
Loading…
Reference in New Issue
Block a user