Introduction
Introduction Statistics Contact Development Disclaimer Help
tren: render double width characters - neatvi - [fork] simple vi-type editor wi…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 29b4fa028ebed5c2b2a9a7e13bce07ab2ae81587
parent 141f09f6ec82e918ff772e02500c7903be72e50e
Author: Ali Gholami Rudi <[email protected]>
Date: Sat, 12 Dec 2020 01:16:32 +0330
ren: render double width characters
Diffstat:
M ren.c | 2 +-
M uc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ren.c b/ren.c
t@@ -154,7 +154,7 @@ int ren_cwid(char *s, int pos)
for (i = 0; !conf_placeholder(i, &src, &dst, &wid); i++)
if (uc_code(src) == uc_code(s))
return wid;
- return 1;
+ return uc_wid(s);
}
char *ren_translate(char *s, char *ln)
diff --git a/uc.c b/uc.c
t@@ -595,7 +595,7 @@ int uc_isbell(char *s)
if (c == ' ' || c == '\t' || c == '\n' || (c <= 0x7f && isprint(c)))
return 0;
c = uc_code(s);
- return uc_isdw(c) || uc_iszw(c) || find(c, bchars, LEN(bchars));
+ return uc_iszw(c) || find(c, bchars, LEN(bchars));
}
/* nonprintable characters */
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.