tvi: fix the spelling of vi_scrollforward - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit f1f7d6c1e32ae38ddfb6ff6655dade4e9d82faa8
(DIR) parent 0cda11bd3981b5cdf7c73774420019413e9fe032
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Wed, 1 Sep 2021 19:05:35 +0430
vi: fix the spelling of vi_scrollforward
Reported by Kyryl Melekhin <k.melekhin@gmail.com>.
Diffstat:
M vi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/vi.c b/vi.c
t@@ -943,7 +943,7 @@ static int vc_join(void)
return 0;
}
-static int vi_scrollforeward(int cnt)
+static int vi_scrollforward(int cnt)
{
if (xtop >= lbuf_len(xb) - 1)
return 1;
t@@ -1101,13 +1101,13 @@ static void vi(void)
mod = 1;
break;
case TK_CTL('f'):
- if (vi_scrollforeward(MAX(1, vi_arg1) * (xrows - 1)))
+ if (vi_scrollforward(MAX(1, vi_arg1) * (xrows - 1)))
break;
xoff = lbuf_indents(xb, xrow);
mod = 1;
break;
case TK_CTL('e'):
- if (vi_scrollforeward(MAX(1, vi_arg1)))
+ if (vi_scrollforward(MAX(1, vi_arg1)))
break;
break;
case TK_CTL('y'):