← Commit list

0c42a6b07

Ron Yorston
Ron Yorston
2021-04-30
SUCCESS Duration: 156s

Subject

vi: fix empty line range regression

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+1 -1
@@ -2553,7 +2553,7 @@ static char *get_address(char *p, int *b, int *e)
break;
state = GET_SEPARATOR;
} else {
- if (state == GET_SEPARATOR && *e < 0)
+ if (state == GET_SEPARATOR && *b >= 0 && *e < 0)
*e = count_lines(text, dot);
break;
}