commit - 821a6e00a5a9395f40c10c00d19c569bd0f2688e
commit + 20c4f122543b67c0cdcefd151eb38b3bee599c10
blob - e0aae9dd63dd959c41f92406215b9948af9d0dbb
blob + 9eebbe435f4f0917fa881701ec0a173c7d676048
--- st.c
+++ st.c
static void tputtab(int);
static void tputc(char *, int);
static void treset(void);
-static int tresize(int, int);
+static void tresize(int, int);
static void tscrollup(int, int);
static void tscrolldown(int, int);
static void tsetattr(int *, int);
}
}
-int
+void
tresize(int col, int row) {
int i;
int minrow = MIN(row, term.row);
Line *orig;
TCursor c;
- if(col < 1 || row < 1)
- return 0;
+ if(col < 1 || row < 1) {
+ fprintf(stderr,
+ "tresize: error resizing to %dx%d\n", col, row);
+ return;
+ }
/* free unneeded rows */
i = 0;
tcursor(CURSOR_LOAD);
} while(orig != term.line);
term.c = c;
-
- return (slide > 0);
}
void