]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
IND no longer notices lfhascr. ben-hacked-terminal
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 9 Mar 1999 12:10:05 +0000 (12:10 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 9 Mar 1999 12:10:05 +0000 (12:10 +0000)
I've actually got the fix in term_mouse right now (or less wrong).
Yeah.

[originally from svn r83]

terminal.c

index 63403c1ae1ed11b57a03ef51fa0f71a0cc6941c3..96d87b3a6b481c1dab9e407bd953d1ecaebb14c1 100644 (file)
@@ -649,12 +649,12 @@ void term_out(void) {
              case '\013':
              case '\014':
              case '\012':
-             case 'IND':
+             case IND:
                if (curs_y == marg_b)
                    scroll (marg_t, marg_b, 1, TRUE);
                else if (curs_y < rows-1)
                    curs_y++;
-                if (lfhascr)
+                if (lfhascr && c != IND)
                     curs_x = 0;
                fix_cpos;
                wrapnext = FALSE;
@@ -1514,7 +1514,7 @@ void term_mouse (Mouse_Button b, Mouse_Action a, int x, int y) {
                back->send (q, p-q);
                if (p <= data+len-sizeof(sel_nl) &&
                    !memcmp(p, sel_nl, sizeof(sel_nl))) {
-                   back->send ("\n", 1);
+                   back->send ("\015", 1);
                    p += sizeof(sel_nl);
                }
                q = p;