summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-02-09 00:48:21 -0700
committerEduardo Chappa <chappa@washington.edu>2013-02-09 00:48:21 -0700
commit84b87695f7a78f49646002072e6a660f3bca8333 (patch)
tree2bc4867c7084a290dd29b105211aad0778aeb1a1
parent640d8845bffdf13007a10929ad0f18375a9a2473 (diff)
downloadalpine-84b87695f7a78f49646002072e6a660f3bca8333.tar.xz
Fixed crashing bug on resizing configuration screen
-rw-r--r--.gitignore1
-rw-r--r--alpine/confscroll.c2
-rw-r--r--pith/pine.hlp3
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 0a7f0643..e0082027 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ imap/an
dmail
imap/ip6
include/
+autom4te*
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){
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 07ff3cc0..26877cfb 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -199,7 +199,8 @@ message, as specified by original sender.
Bugs that have been addressed include:
<P>
<UL>
- <LI> Crash when a non-compliant SMTP server closes a connection without a LOGOUT
+ <LI> Crash when a non-compliant SMTP server closes a connection without a LOGOUT.
+ <LI> Crash when resizing the screen in a configuration screen.
</UL>
<P>