~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved the environment variables config block out of the Telnet panel
[sgt/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
c4d725a
..
40ad482
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-177,6
+177,8
@@
static void cc_check(termline *line)
j += (flags[i] != 0);
assert(j == line->size);
j += (flags[i] != 0);
assert(j == line->size);
+
+ sfree(flags);
}
/*
}
/*
@@
-1667,7
+1669,7
@@
static void scroll(Terminal *term, int topline, int botline, int lines, int sb)
addpos234(term->scrollback, compressline(line), sblen);
addpos234(term->scrollback, compressline(line), sblen);
- line = newline(term, term->cols, TRUE);
+ /* now `line' itself can be reused as the bottom line */
/*
* If the user is currently looking at part of the
/*
* If the user is currently looking at part of the
@@
-2464,6
+2466,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);
}