projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix cursor display on a combined character cell.
[u/mdw/putty]
/
unix
/
pterm.c
diff --git
a/unix/pterm.c
b/unix/pterm.c
index
7efce80
..
9f767fd
100644
(file)
--- a/
unix/pterm.c
+++ b/
unix/pterm.c
@@
-2049,6
+2049,9
@@
void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
active = 0;
do_text_internal(ctx, x, y, text, len, attr, lattr);
+ if (attr & TATTR_COMBINING)
+ len = 1;
+
if (attr & ATTR_WIDE) {
widefactor = 2;
} else {