Fix due to Robert de Bath: backspace should not cross line
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 May 2001 12:48:01 +0000 (12:48 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 May 2001 12:48:01 +0000 (12:48 +0000)
boundaries when auto wrap is disabled.

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

terminal.c

index 64b5685..e1e9716 100644 (file)
@@ -1010,7 +1010,7 @@ void term_out(void)
                }
                break;
              case '\b':
-               if (curs.x == 0 && curs.y == 0);
+               if (curs.x == 0 && (curs.y == 0 || wrap == 0));
                else if (curs.x == 0 && curs.y > 0)
                    curs.x = cols - 1, curs.y--;
                else if (wrapnext)