commit - e5a2797faaeff6b9a4012a166ab9caa6c3634a5d
commit + 23f22c831d0a8e842699264fa1228a779f097e26
blob - c976d386465eb4267bed7caa84ca7f6c1671f0a1
blob + 29ec159ec7a00421fbf45ab9a858446a21de27fc
--- ui.c
+++ ui.c
static void update_loading_anim(int, short, void*);
static void stop_loading_anim(struct tab*);
+static int too_small;
static int x_offset;
struct thiskey thiskey;
const char *keyname;
char tmp[5] = {0};
+ /* TODO: schedule a redraw? */
+ if (too_small)
+ return;
+
if (!readkey())
return;
lines = LINES;
+ if ((too_small = lines < 15)) {
+ erase();
+ printw("Window too small.");
+ refresh();
+ return;
+ }
+
/* move and resize the windows, in reverse order! */
mvwin(echoarea, --lines, 0);
static void
redraw_tab(struct tab *tab)
{
+ if (too_small)
+ return;
+
if (side_window) {
redraw_help();
wnoutrefresh(help);