projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing check_boundary() calls in destructive backspace handler.
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
c4d725a
..
9f0f061
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-2464,6
+2464,8
@@
void term_out(Terminal *term)
term->wrapnext = FALSE;
/* destructive backspace might be disabled */
if (!term->cfg.no_dbackspace) {
term->wrapnext = FALSE;
/* destructive backspace might be disabled */
if (!term->cfg.no_dbackspace) {
+ check_boundary(term, term->curs.x, term->curs.y);
+ check_boundary(term, term->curs.x+1, term->curs.y);
copy_termchar(scrlineptr(term->curs.y),
term->curs.x, &term->erase_char);
}
copy_termchar(scrlineptr(term->curs.y),
term->curs.x, &term->erase_char);
}