From: simon Date: Wed, 9 May 2001 12:48:01 +0000 (+0000) Subject: Fix due to Robert de Bath: backspace should not cross line X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/967a161ed00ad6ea80a12bf0e0c6a9304755ddd3 Fix due to Robert de Bath: backspace should not cross line boundaries when auto wrap is disabled. git-svn-id: svn://svn.tartarus.org/sgt/putty@1101 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/terminal.c b/terminal.c index 64b5685b..e1e97167 100644 --- a/terminal.c +++ b/terminal.c @@ -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)