summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-25 16:50:48 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-25 16:50:48 +0200
commit68a33fc7042106e7a1c4ddd9797b158d34905af9 (patch)
treeb295393010cc98d78e994e4d38e1539546812c9c /src/fileio.c
parent720ce53af0a1bf433bef91521771de77de6d8077 (diff)
downloadvim-git-68a33fc7042106e7a1c4ddd9797b158d34905af9.tar.gz
updated for version 7.3.505v7.3.505
Problem: Test 11 fails on MS-Windows in some versions. Solution: Fix #ifdefs for whether filtering through a pipe is possible. Move setting b_no_eol_lnum back to where it was before patch 7.3.124. (David Pope)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 5d00b753d..52eb34b3b 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2655,10 +2655,6 @@ failed:
}
#endif
- /* Reset now, following writes should not omit the EOL. Also, the line
- * number will become invalid because of edits. */
- curbuf->b_no_eol_lnum = 0;
-
if (recoverymode && error)
return FAIL;
return OK;
@@ -5098,6 +5094,8 @@ nofail:
{
aco_save_T aco;
+ curbuf->b_no_eol_lnum = 0; /* in case it was set by the previous read */
+
/*
* Apply POST autocommands.
* Careful: The autocommands may call buf_write() recursively!