aboutsummaryrefslogtreecommitdiff
path: root/contrib/nvi
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-07-19 11:02:11 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-07-19 11:02:11 +0000
commit489b9470ae8cb310f29b9ef9c7b7a900b9e333d5 (patch)
tree6ab8f62a758f3c05296c166d0f88baeb9d85f9ec /contrib/nvi
parent22cbe5e31f1a6bb3b9bfc663570b191359794824 (diff)
downloadsrc-489b9470ae8cb310f29b9ef9c7b7a900b9e333d5.tar.gz
src-489b9470ae8cb310f29b9ef9c7b7a900b9e333d5.zip
Notes
Diffstat (limited to 'contrib/nvi')
-rw-r--r--contrib/nvi/vi/vs_refresh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/nvi/vi/vs_refresh.c b/contrib/nvi/vi/vs_refresh.c
index d954c62454d5..f69d3820db7f 100644
--- a/contrib/nvi/vi/vs_refresh.c
+++ b/contrib/nvi/vi/vs_refresh.c
@@ -10,7 +10,11 @@
#include "config.h"
#ifndef lint
+#if 0
static const char sccsid[] = "@(#)vs_refresh.c 10.44 (Berkeley) 10/13/96";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include <sys/types.h>
@@ -595,7 +599,7 @@ slow: for (smp = HMAP; smp->lno != LNO; ++smp);
* for the number option offset.
*/
cnt = vs_columns(sp, NULL, LNO, &CNO, NULL);
- if (O_ISSET(sp, O_NUMBER))
+ if (O_ISSET(sp, O_NUMBER) && cnt >= O_NUMBER_LENGTH)
cnt -= O_NUMBER_LENGTH;
/* Adjust the window towards the beginning of the line. */