mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
tresize: remove unnecessary if
This commit is contained in:
parent
a6af2cc469
commit
9619760e12
1 changed files with 2 additions and 4 deletions
6
st.c
6
st.c
|
@ -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…
Reference in a new issue