From 5a9af2820038ac323030e39627c0b214a52008fc Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 11 Nov 2004 09:40:50 +0000 Subject: [PATCH] I masked off LATTR_WRAPPED et al in do_text_internal(), but forgot to do the same in do_cursor(). Bet that's the cause of Andrey Borzenkov's cursor positioning bug. [originally from svn r4770] --- window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/window.c b/window.c index c2d7575c..ccebea77 100644 --- a/window.c +++ b/window.c @@ -3222,6 +3222,8 @@ void do_cursor(Context ctx, int x, int y, wchar_t *text, int len, HDC hdc = ctx; int ctype = cfg.cursor_type; + lattr &= LATTR_MODE; + if ((attr & TATTR_ACTCURS) && (ctype == 0 || term->big_cursor)) { if (*text != UCSWIDE) { do_text(ctx, x, y, text, len, attr, lattr);