From e8fcc446e5475ed4ae0bae6859f95603a0920fc0 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 26 Nov 2018 10:40:53 +0000 Subject: vi: save a few bytes --- editors/vi.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'editors/vi.c') diff --git a/editors/vi.c b/editors/vi.c index e79787977..05d30f2ff 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -2969,26 +2969,20 @@ static int file_insert(const char *fn, char *p, int initial) status_line_bold_errno(fn); p = text_hole_delete(p, p + size - 1, NO_UNDO); // un-do buffer insert } else if (cnt < size) { - // There was a partial read, shrink unused space #if ENABLE_PLATFORM_MINGW32 - int i, newline; + int i, cnt_cr; - newline = 0; - for ( i=0; i