tresize: remove unnecessary if

master
noname@inventati.org 10 years ago committed by Roberto E. Vargas Caballero
parent a6af2cc469
commit 9619760e12

@ -2783,10 +2783,8 @@ tresize(int col, int row) {
free(term.line[i]); free(term.line[i]);
free(term.alt[i]); free(term.alt[i]);
} }
if(i > 0) {
memmove(term.line, term.line + i, row * sizeof(Line)); memmove(term.line, term.line + i, row * sizeof(Line));
memmove(term.alt, term.alt + i, row * sizeof(Line)); memmove(term.alt, term.alt + i, row * sizeof(Line));
}
for(i += row; i < term.row; i++) { for(i += row; i < term.row; i++) {
free(term.line[i]); free(term.line[i]);
free(term.alt[i]); free(term.alt[i]);

Loading…
Cancel
Save