passthrough unmatched keys

This commit is contained in:
2026-05-28 23:38:23 +09:00
parent 795353609b
commit 7e69827c13
3 changed files with 6 additions and 9 deletions

4
vi.c
View File

@@ -101,10 +101,8 @@ transvi(Im *im, Rune c)
return transmap(im, c);
memset(&e, 0, sizeof e);
if(im->pre.n == 0){
sputr(&e.s, c);
if(im->pre.n == 0)
return e;
}
if(im->pre.r[im->pre.n - 1] == '\\'){
pre = im->pre;
pre.n--;