Skip to content

Commit 32b1c1a

Browse files
committed
Drop the superseded column overflow fix.
The fix was brought in by FreeBSD-r79950, reported by bin/28687. The correct fix is already in nvi-1.8x (see bin/23912, bin/33648, and r89010). OpenBSD system/5749 cannot reproduce; svn-r106350 is not applied.
1 parent 4bbd29a commit 32b1c1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vi/vs_refresh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "config.h"
1111

1212
#ifndef lint
13-
static const char sccsid[] = "$Id: vs_refresh.c,v 10.53 2013/11/01 11:57:36 zy Exp $";
13+
static const char sccsid[] = "$Id: vs_refresh.c,v 10.54 2015/04/08 16:32:49 zy Exp $";
1414
#endif /* not lint */
1515

1616
#include <sys/types.h>
@@ -593,7 +593,7 @@ slow: for (smp = HMAP; smp->lno != LNO; ++smp);
593593
* for the number option offset.
594594
*/
595595
cnt = vs_columns(sp, NULL, LNO, &CNO, NULL);
596-
if (O_ISSET(sp, O_NUMBER) && cnt >= O_NUMBER_LENGTH)
596+
if (O_ISSET(sp, O_NUMBER))
597597
cnt -= O_NUMBER_LENGTH;
598598

599599
/* Adjust the window towards the beginning of the line. */

0 commit comments

Comments
 (0)