Introduction
Introduction Statistics Contact Development Disclaimer Help
tvi: fix two compiler warnings on clang ver. 1000.11.45.5 - neatvi - [fork] sim…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit fb4a84a4c678277646bd1873f1d75abd6b527ab7
parent 646929726b8bd1971559744ad1cea6c564312e53
Author: Joe Loughry <[email protected]>
Date: Sun, 17 Feb 2019 14:36:35 -0700
vi: fix two compiler warnings on clang ver. 1000.11.45.5
Diffstat:
M vi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vi.c b/vi.c
t@@ -72,7 +72,7 @@ static void vi_drawagain(int xcol, int lineonly)
/* update the screen */
static void vi_drawupdate(int xcol, int otop)
{
- int i;
+ int i = 0;
if (otop != xtop) {
term_record();
term_pos(0, 0);
t@@ -1302,7 +1302,7 @@ static void vi(void)
}
cmd = term_cmd(&n);
if (strchr("!<>ACDIJOPRSXYacdioprsxy~", c) ||
- c == 'g' && strchr("uU~", k)) {
+ (c == 'g' && strchr("uU~", k))) {
if (n < sizeof(rep_cmd)) {
memcpy(rep_cmd, cmd, n);
rep_len = n;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.