I masked off LATTR_WRAPPED et al in do_text_internal(), but forgot
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Nov 2004 09:40:50 +0000 (09:40 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4770 cda61777-01e9-0310-a592-d414129be87e

window.c

index c2d7575..ccebea7 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);