mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 01:25:55 +03:00
chat-cli: don't crash on %bad-text
This commit is contained in:
parent
6178ae88fc
commit
b35129e517
@ -1452,8 +1452,13 @@
|
||||
~(glyph tr source)
|
||||
=/ lis=(list tape)
|
||||
%+ simple-wrap
|
||||
~| [%weird-text `@`+.letter]
|
||||
`tape``(list @)`(tuba (trip +.letter))
|
||||
=/ result=(each tape tang)
|
||||
%- mule |.
|
||||
`(list @)`(tuba (trip +.letter))
|
||||
?- -.result
|
||||
%& p.result
|
||||
%| "[[msg rendering error]]"
|
||||
==
|
||||
(sub wyd (min (div wyd 2) (lent pef)))
|
||||
=+ lef=(lent pef)
|
||||
=+ ?:((gth (lent lis) 0) (snag 0 lis) "")
|
||||
|
Loading…
Reference in New Issue
Block a user