diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-02-09 00:48:21 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-02-09 00:48:21 -0700 |
commit | 84b87695f7a78f49646002072e6a660f3bca8333 (patch) | |
tree | 2bc4867c7084a290dd29b105211aad0778aeb1a1 /alpine/confscroll.c | |
parent | 640d8845bffdf13007a10929ad0f18375a9a2473 (diff) | |
download | alpine-84b87695f7a78f49646002072e6a660f3bca8333.tar.xz |
Fixed crashing bug on resizing configuration screen
Diffstat (limited to 'alpine/confscroll.c')
-rw-r--r-- | alpine/confscroll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alpine/confscroll.c b/alpine/confscroll.c index 24829265..24a8e80e 100644 --- a/alpine/confscroll.c +++ b/alpine/confscroll.c @@ -3035,7 +3035,7 @@ update_option_screen(struct pine *ps, OPT_SCREEN_S *screen, Pos *cursor_pos) int last_selectable; mswin_beginupdate(); #endif - if(screen == NULL) + if(screen == NULL || BODY_LINES(ps) < 0) return; if(cursor_pos){ |