sim

the sim text editor
git clone git://ssnf.xyz/sim
Log | Files | Refs | README

commit 7407e778440741ec71350c5a38730ca139e5790e
parent 455b278c9396196810bbaea7a7a43526fa0914a1
Author: ssnf <ssnf@ssnf.xyz>
Date:   Fri, 12 Sep 2025 17:25:05 +0000

fix bug

Diffstat:
Msim.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim.c b/sim.c @@ -631,7 +631,7 @@ insert(int arg) { String s, c; - if (f->s.s[f->s.n - 1] != '\n') + if (f->s.n && f->s.s[f->s.n - 1] != '\n') str_addr(&f->s, '\n'); str_init(&s), str_init(&c); str_addr(&c, '\0');