]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add missing check_boundary() calls in destructive backspace handler.
authorSimon Tatham <anakin@pobox.com>
Fri, 15 Oct 2004 11:51:26 +0000 (11:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 Oct 2004 11:51:26 +0000 (11:51 +0000)
[originally from svn r4635]

terminal.c

index c4d725abaa8371fcb76f6d48f9c3b6816c8336ae..9f0f06152fb3e74e5fe415f4b877549e46b2dc13 100644 (file)
@@ -2464,6 +2464,8 @@ void term_out(Terminal *term)
            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);
            }