aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 3db597ae1..f355712ab 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2910,10 +2910,10 @@ static int file_insert(const char *fn, char *p, int initial)
2910 int fd, size; 2910 int fd, size;
2911 struct stat statbuf; 2911 struct stat statbuf;
2912 2912
2913 if (p < text || p > end) { 2913 if (p < text)
2914 status_line_bold("Trying to insert file outside of memory"); 2914 p = text;
2915 return cnt; 2915 if (p > end)
2916 } 2916 p = end;
2917 2917
2918 fd = open(fn, O_RDONLY); 2918 fd = open(fn, O_RDONLY);
2919 if (fd < 0) { 2919 if (fd < 0) {