archrelease: copy trunk to extra-x86_64
[arch-packages.git] / vi / repos / core-x86_64 / linenum.patch
blob6821b3b3b99d8ff4aa8390675176564ff394ad55
1 From 891c4022e24063608b554b6b3e4b5e2533e5443b Mon Sep 17 00:00:00 2001
2 From: n-t-roff <troff@arcor.de>
3 Date: Fri, 22 Apr 2016 19:08:05 +0200
4 Subject: [PATCH] set nu bug fixed
6 ---
7 ex_put.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/ex_put.c b/ex_put.c
11 index fb7446e..0760747 100644
12 --- a/ex_put.c
13 +++ b/ex_put.c
14 @@ -298,7 +298,7 @@ normline(int unused, int max)
16 (void)unused;
17 if (max > 0)
18 - vcntcol = 0;
19 + vcntcol = value(NUMBER) << 3;
20 if (shudclob)
21 slobber(linebuf[0]);
22 /* pdp-11 doprnt is not reentrant so can't use "printf" here
24 From ad7f1e567324494021135bd2ec680b656a3f1cab Mon Sep 17 00:00:00 2001
25 From: n-t-roff <troff@arcor.de>
26 Date: Wed, 27 Jul 2016 18:58:47 +0200
27 Subject: [PATCH] Number mode command line bugfix
29 The prev. number mode bugfix did introduce a bug in the command line
30 cursor position when using backspace in number mode. Should be
31 fixed now.
32 ---
33 ex_put.c | 5 +++--
34 1 file changed, 3 insertions(+), 2 deletions(-)
36 diff --git a/ex_put.c b/ex_put.c
37 index 26236d4..09ad403 100644
38 --- a/ex_put.c
39 +++ b/ex_put.c
40 @@ -277,9 +277,12 @@ int
41 numbline(int i, int max)
44 + extern short vcntcol;
45 if (shudclob)
46 slobber(' ');
47 max -= printf("%6d ", i);
48 + if (max > 0)
49 + vcntcol = value(NUMBER) << 3;
50 return normline(0, max);
53 @@ -297,8 +300,6 @@ normline(int unused, int max)
54 int c, n;
55 int ret = 0;
57 - if (max > 0)
58 - vcntcol = value(NUMBER) << 3;
59 if (shudclob)
60 slobber(linebuf[0]);
61 /* pdp-11 doprnt is not reentrant so can't use "printf" here