diff options
| -rw-r--r-- | editors/vi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c index 4fda6aebf..96e6af318 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
| @@ -1809,8 +1809,10 @@ static void dot_to_char(int cmd) | |||
| 1809 | do { | 1809 | do { |
| 1810 | do { | 1810 | do { |
| 1811 | q += dir; | 1811 | q += dir; |
| 1812 | if ((dir == FORWARD ? q > end - 1 : q < text) || *q == '\n') | 1812 | if ((dir == FORWARD ? q > end - 1 : q < text) || *q == '\n') { |
| 1813 | indicate_error(); | ||
| 1813 | return; | 1814 | return; |
| 1815 | } | ||
| 1814 | } while (*q != last_search_char); | 1816 | } while (*q != last_search_char); |
| 1815 | } while (--cmdcnt > 0); | 1817 | } while (--cmdcnt > 0); |
| 1816 | 1818 | ||
