diff options
author | noname@inventati.org | 2015-04-12 10:30:19 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2015-04-13 17:12:49 +0200 |
commit | 9619760e129b0994cd3bc4c827c83960f6a5e98f (patch) | |
tree | 83f248644d3f1a493e78118e6cbb0bc5fe8f7195 | |
parent | a6af2cc46961a9378ab43919bb308162dedd4153 (diff) | |
download | st-9619760e129b0994cd3bc4c827c83960f6a5e98f.tar.gz st-9619760e129b0994cd3bc4c827c83960f6a5e98f.tar.xz st-9619760e129b0994cd3bc4c827c83960f6a5e98f.zip |
tresize: remove unnecessary if
-rw-r--r-- | st.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2783,10 +2783,8 @@ tresize(int col, int row) { free(term.line[i]); free(term.alt[i]); } - if(i > 0) { - memmove(term.line, term.line + i, row * sizeof(Line)); - memmove(term.alt, term.alt + i, row * sizeof(Line)); - } + memmove(term.line, term.line + i, row * sizeof(Line)); + memmove(term.alt, term.alt + i, row * sizeof(Line)); for(i += row; i < term.row; i++) { free(term.line[i]); free(term.alt[i]); |