Fix due to Robert de Bath: backspace should not cross line
[u/mdw/putty] / 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)