[Aptitude-svn-commit] r4129 - in branches/aptitude-0.3/aptitude: .
src/vscreen
Daniel Burrows
dburrows at costa.debian.org
Tue Sep 20 17:01:01 UTC 2005
Author: dburrows
Date: Tue Sep 20 17:00:57 2005
New Revision: 4129
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vs_editline.cc
Log:
Don't crash when creating a very small line-editor.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Sep 20 17:00:57 2005
@@ -1,3 +1,12 @@
+2005-09-20 Daniel Burrows <dburrows at debian.org>
+
+ * src/vscreen/vs_editline.cc:
+
+ Don't crash when creating a very small line-editor, such as when
+ displaying the options dialog in a thin terminal (it has other
+ problems in a thin terminal, but at least this one is fixed
+ now).
+
2005-09-19 Daniel Burrows <dburrows at debian.org>
* src/broken_indicator.cc, src/mine/cmine.cc, src/vscreen/vscreen.cc:
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_editline.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_editline.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_editline.cc Tue Sep 20 17:00:57 2005
@@ -79,8 +79,7 @@
void vs_editline::normalize_cursor()
{
- // Dodge the signedness bullet, hopefully
- if(get_width()<0)
+ if(get_width() <= 0)
return;
int w=get_width();
More information about the Aptitude-svn-commit
mailing list