diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-07-07 12:05:11 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-07-07 12:05:11 +0000 |
commit | 553123fabf03fc3f2e58e6d7de649927d61a614d (patch) | |
tree | 65af3efa799c6fd6ff988ad1aa26976c75f71874 | |
parent | dfa5e2d99a78ed86a51e6a131107b58da3d85140 (diff) |
Don't add space for line numbers twice.
OK otto@
-rw-r--r-- | usr.bin/vi/vi/vs_relative.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/vi/vi/vs_relative.c b/usr.bin/vi/vi/vs_relative.c index 40072a3f88a..bf56c72f7d1 100644 --- a/usr.bin/vi/vi/vs_relative.c +++ b/usr.bin/vi/vi/vs_relative.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vs_relative.c,v 1.5 2006/05/21 19:21:30 otto Exp $ */ +/* $OpenBSD: vs_relative.c,v 1.6 2006/07/07 12:05:10 ray Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -147,10 +147,6 @@ done: if (diffp != NULL) /* XXX */ p = lp; curoff = 0; - /* Leading number if O_NUMBER option set. */ - if (O_ISSET(sp, O_NUMBER)) - scno += O_NUMBER_LENGTH; - /* Macro to return the display length of any signal character. */ #define CHLEN(val) (ch = *(u_char *)p++) == '\t' && \ !listset ? TAB_OFF(val) : KEY_LEN(sp, ch); |