[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/info window.c
From: |
Karl Berry |
Subject: |
texinfo/info window.c |
Date: |
Sat, 05 Feb 2011 19:01:54 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Karl Berry <karl> 11/02/05 19:01:54
Modified files:
info : window.c
Log message:
missed commit
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/info/window.c?cvsroot=texinfo&r1=1.20&r2=1.21
Patches:
Index: window.c
===================================================================
RCS file: /sources/texinfo/texinfo/info/window.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- window.c 29 Dec 2008 23:22:20 -0000 1.20
+++ window.c 5 Feb 2011 19:01:54 -0000 1.21
@@ -1,7 +1,7 @@
/* window.c -- windows in Info.
- $Id: window.c,v 1.20 2008/12/29 23:22:20 karl Exp $
+ $Id: window.c,v 1.21 2011/02/05 19:01:54 karl Exp $
- Copyright (C) 1993, 1997, 1998, 2001, 2002, 2003, 2004, 2007, 2008
+ Copyright (C) 1993, 1997, 1998, 2001, 2002, 2003, 2004, 2007, 2008, 2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -923,7 +923,13 @@
break;
}
+ /* Something is wrong with the above logic as it allows a negative
+ index to be returned for small windows. Until someone figures it
+ out, at least don't core dump. */
+ if (i > 0)
return i - 1;
+ else
+ return 0;
}
/* Get and return the goal column for this window. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/info window.c,
Karl Berry <=