mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +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))
|
=/ txt (tuba (trip msg.sep))
|
||||||
|- ^- (list tape)
|
|- ^- (list tape)
|
||||||
?~ txt ~
|
?~ txt ~
|
||||||
=/ end
|
=+ ^- {end/@ud nex/?}
|
||||||
?: (lte (lent txt) wyd) (lent txt)
|
?: (lte (lent txt) wyd) [(lent txt) &]
|
||||||
=+ ace=(find " " (flop (scag +(wyd) `(list @c)`txt)))
|
=+ ace=(find " " (flop (scag +(wyd) `(list @c)`txt)))
|
||||||
?~ ace wyd
|
?~ ace [wyd |]
|
||||||
(sub wyd u.ace)
|
[(sub wyd u.ace) &]
|
||||||
:- (weld pef (tufa (scag end `(list @c)`txt)))
|
:- (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
|
$inv
|
||||||
:_ ~
|
:_ ~
|
||||||
|
Loading…
Reference in New Issue
Block a user