Mercurial > vim
comparison src/fileio.c @ 3482:fe7bf24804e1 v7.3.505
updated for version 7.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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Apr 2012 16:50:48 +0200 |
parents | de60f6fa3d8d |
children | b782e2f9e689 |
comparison
equal
deleted
inserted
replaced
3481:68f90c98dc33 | 3482:fe7bf24804e1 |
---|---|
2653 return FAIL; | 2653 return FAIL; |
2654 # endif | 2654 # endif |
2655 } | 2655 } |
2656 #endif | 2656 #endif |
2657 | 2657 |
2658 /* Reset now, following writes should not omit the EOL. Also, the line | |
2659 * number will become invalid because of edits. */ | |
2660 curbuf->b_no_eol_lnum = 0; | |
2661 | |
2662 if (recoverymode && error) | 2658 if (recoverymode && error) |
2663 return FAIL; | 2659 return FAIL; |
2664 return OK; | 2660 return OK; |
2665 } | 2661 } |
2666 | 2662 |
5095 #else | 5091 #else |
5096 if (!got_int) | 5092 if (!got_int) |
5097 #endif | 5093 #endif |
5098 { | 5094 { |
5099 aco_save_T aco; | 5095 aco_save_T aco; |
5096 | |
5097 curbuf->b_no_eol_lnum = 0; /* in case it was set by the previous read */ | |
5100 | 5098 |
5101 /* | 5099 /* |
5102 * Apply POST autocommands. | 5100 * Apply POST autocommands. |
5103 * Careful: The autocommands may call buf_write() recursively! | 5101 * Careful: The autocommands may call buf_write() recursively! |
5104 */ | 5102 */ |