1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Fix due to Robert de Bath: backspace should not cross line

boundaries when auto wrap is disabled.

[originally from svn r1101]
This commit is contained in:
Simon Tatham 2001-05-09 12:48:01 +00:00
parent 19b6dcc1ae
commit 9318b84598

View 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)