From 9318b845986bcebfb923e9b863847dd22a59cee2 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 9 May 2001 12:48:01 +0000 Subject: [PATCH] Fix due to Robert de Bath: backspace should not cross line boundaries when auto wrap is disabled. [originally from svn r1101] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)