pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
742a41d
)
Use utf8len instead of utf8decode.
author
noname@inventati.org
<noname@inventati.org>
Tue, 21 Apr 2015 21:27:22 +0000
(23:27 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 27 Apr 2015 06:58:37 +0000
(08:58 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
b042be2
..
6371a85
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3672,7
+3672,6
@@
drawregion(int x1, int y1, int x2, int y2) {
Glyph base, new;
char buf[DRAW_BUF_SIZ];
bool ena_sel = sel.ob.x != -1 && sel.alt == IS_SET(MODE_ALTSCREEN);
- long unicodep;
if(!(xw.state & WIN_VISIBLE))
return;
@@
-3701,7
+3700,7
@@
drawregion(int x1, int y1, int x2, int y2) {
base = new;
}
- sl = utf8
decode(new.c, &unicodep, UTF_SIZ
);
+ sl = utf8
len(new.c
);
memcpy(buf+ib, new.c, sl);
ib += sl;
ic += (new.mode & ATTR_WIDE)? 2 : 1;