]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
I masked off LATTR_WRAPPED et al in do_text_internal(), but forgot
authorSimon Tatham <anakin@pobox.com>
Thu, 11 Nov 2004 09:40:50 +0000 (09:40 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 11 Nov 2004 09:40:50 +0000 (09:40 +0000)
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

index c2d7575c993a81cce2968dafbb08a6a46fcc00be..ccebea778cdf43a37b9740a5d0c50fc8756f58fd 100644 (file)
--- 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);