mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05:00
Fix handling of backspace at beginning of line.
In the big boolification commit (3214563d8) I accidentally rewrote "term->wrap == 0" as "term->wrap" instead of as "!term->wrap", so now sending the backspace character to the terminal at the start of a line causes the cursor to wrap round to the end of the previous line if and only if it _shouldn't_ have done.
This commit is contained in:
parent
41e1a586fb
commit
383a16d5e5
@ -3185,7 +3185,7 @@ static void term_out(Terminal *term)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '\b': /* BS: Back space */
|
case '\b': /* BS: Back space */
|
||||||
if (term->curs.x == 0 && (term->curs.y == 0 || term->wrap))
|
if (term->curs.x == 0 && (term->curs.y == 0 || !term->wrap))
|
||||||
/* do nothing */ ;
|
/* do nothing */ ;
|
||||||
else if (term->curs.x == 0 && term->curs.y > 0)
|
else if (term->curs.x == 0 && term->curs.y > 0)
|
||||||
term->curs.x = term->cols - 1, term->curs.y--;
|
term->curs.x = term->cols - 1, term->curs.y--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user