diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c index 6a879fa8a..edcf84240 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -2553,7 +2553,7 @@ static char *get_address(char *p, int *b, int *e) | |||
2553 | break; | 2553 | break; |
2554 | state = GET_SEPARATOR; | 2554 | state = GET_SEPARATOR; |
2555 | } else { | 2555 | } else { |
2556 | if (state == GET_SEPARATOR && *e < 0) | 2556 | if (state == GET_SEPARATOR && *b >= 0 && *e < 0) |
2557 | *e = count_lines(text, dot); | 2557 | *e = count_lines(text, dot); |
2558 | break; | 2558 | break; |
2559 | } | 2559 | } |