summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-main.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-17 12:30:48 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-17 12:30:48 +0200
commit62bcf75851fbf10e4b8307ce96592ca8392f78dc (patch)
treedce2c8fd796955452632f60cefaf9984a4867b66 /src/gui/curses/gui-curses-main.c
parentb0ea4715cae82978eea3c0cd7f71ab9ef8a8623a (diff)
downloadweechat-62bcf75851fbf10e4b8307ce96592ca8392f78dc.zip
Fixed refresh problem (empty screen after resizing terminal to very small size, then normal size)
Diffstat (limited to 'src/gui/curses/gui-curses-main.c')
-rw-r--r--src/gui/curses/gui-curses-main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index d10740064..282a482ba 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -95,8 +95,9 @@ gui_main_init ()
gui_infobar = NULL;
- gui_ok = ((COLS > GUI_WINDOW_MIN_WIDTH) && (LINES > GUI_WINDOW_MIN_HEIGHT));
-
+ gui_ok = ((COLS >= GUI_WINDOW_MIN_WIDTH)
+ && (LINES >= GUI_WINDOW_MIN_HEIGHT));
+
refresh ();
/* init clipboard buffer */