zuse: make +slag:klr:format match +slag's behavior

Previously, if the given index was beyond the stub's content, it would
return the entire stub. Now, it correctly returns the empty stub.
This commit is contained in:
fang 2021-04-17 01:31:40 +02:00
parent 8716c49b45
commit 95c3a51ba1
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -3749,7 +3749,7 @@
^- stub
=+ c=(lnts-char b)
=+ i=(brek a c)
?~ i b
?~ i ~
=+ r=(^slag +(p.u.i) b)
?: =(a q.u.i)
r