pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6af2cc
)
tresize: remove unnecessary if
author
noname@inventati.org
<noname@inventati.org>
Sun, 12 Apr 2015 08:30:19 +0000
(10:30 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 13 Apr 2015 15:12:49 +0000
(17:12 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
4650990
..
2a565b6
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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]);