]>
Commit | Line | Data |
---|---|---|
c6060300 MT |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.505 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.505 | |
11 | Problem: Test 11 fails on MS-Windows in some versions. | |
12 | Solution: Fix #ifdefs for whether filtering through a pipe is possible. Move | |
13 | setting b_no_eol_lnum back to where it was before patch 7.3.124. | |
14 | (David Pope) | |
15 | Files: src/feature.h, src/eval.c, src/ex_cmds.c, src/fileio.c | |
16 | ||
17 | ||
18 | *** ../vim-7.3.504/src/feature.h 2011-10-20 21:09:25.000000000 +0200 | |
19 | --- src/feature.h 2012-04-25 16:44:26.000000000 +0200 | |
20 | *************** | |
21 | *** 1316,1318 **** | |
22 | --- 1316,1326 ---- | |
23 | #ifdef FEAT_NORMAL | |
24 | # define FEAT_PERSISTENT_UNDO | |
25 | #endif | |
26 | + | |
27 | + /* | |
28 | + * +filterpipe | |
29 | + */ | |
30 | + #if (defined(UNIX) && !defined(USE_SYSTEM)) \ | |
31 | + || (defined(WIN3264) && defined(FEAT_GUI_W32)) | |
32 | + # define FEAT_FILTERPIPE | |
33 | + #endif | |
34 | *** ../vim-7.3.504/src/eval.c 2012-04-05 16:53:55.000000000 +0200 | |
35 | --- src/eval.c 2012-04-25 16:43:53.000000000 +0200 | |
36 | *************** | |
37 | *** 12090,12096 **** | |
38 | #ifdef FEAT_SEARCHPATH | |
39 | "file_in_path", | |
40 | #endif | |
41 | ! #if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(WIN3264) | |
42 | "filterpipe", | |
43 | #endif | |
44 | #ifdef FEAT_FIND_ID | |
45 | --- 12090,12096 ---- | |
46 | #ifdef FEAT_SEARCHPATH | |
47 | "file_in_path", | |
48 | #endif | |
49 | ! #ifdef FEAT_FILTERPIPE | |
50 | "filterpipe", | |
51 | #endif | |
52 | #ifdef FEAT_FIND_ID | |
53 | *** ../vim-7.3.504/src/ex_cmds.c 2012-04-25 12:57:23.000000000 +0200 | |
54 | --- src/ex_cmds.c 2012-04-25 16:46:02.000000000 +0200 | |
55 | *************** | |
56 | *** 1113,1119 **** | |
57 | if (do_out) | |
58 | shell_flags |= SHELL_DOOUT; | |
59 | ||
60 | ! #if (!defined(USE_SYSTEM) && defined(UNIX)) || defined(WIN3264) | |
61 | if (!do_in && do_out && !p_stmp) | |
62 | { | |
63 | /* Use a pipe to fetch stdout of the command, do not use a temp file. */ | |
64 | --- 1113,1119 ---- | |
65 | if (do_out) | |
66 | shell_flags |= SHELL_DOOUT; | |
67 | ||
68 | ! #ifdef FEAT_FILTERPIPE | |
69 | if (!do_in && do_out && !p_stmp) | |
70 | { | |
71 | /* Use a pipe to fetch stdout of the command, do not use a temp file. */ | |
72 | *** ../vim-7.3.504/src/fileio.c 2012-02-29 18:22:03.000000000 +0100 | |
73 | --- src/fileio.c 2012-04-25 16:40:37.000000000 +0200 | |
74 | *************** | |
75 | *** 2655,2664 **** | |
76 | } | |
77 | #endif | |
78 | ||
79 | - /* Reset now, following writes should not omit the EOL. Also, the line | |
80 | - * number will become invalid because of edits. */ | |
81 | - curbuf->b_no_eol_lnum = 0; | |
82 | - | |
83 | if (recoverymode && error) | |
84 | return FAIL; | |
85 | return OK; | |
86 | --- 2655,2660 ---- | |
87 | *************** | |
88 | *** 5098,5103 **** | |
89 | --- 5094,5101 ---- | |
90 | { | |
91 | aco_save_T aco; | |
92 | ||
93 | + curbuf->b_no_eol_lnum = 0; /* in case it was set by the previous read */ | |
94 | + | |
95 | /* | |
96 | * Apply POST autocommands. | |
97 | * Careful: The autocommands may call buf_write() recursively! | |
98 | *** ../vim-7.3.504/src/version.c 2012-04-25 12:57:23.000000000 +0200 | |
99 | --- src/version.c 2012-04-25 16:49:50.000000000 +0200 | |
100 | *************** | |
101 | *** 716,717 **** | |
102 | --- 716,719 ---- | |
103 | { /* Add new patch number below this line */ | |
104 | + /**/ | |
105 | + 505, | |
106 | /**/ | |
107 | ||
108 | -- | |
109 | Lose weight, NEVER Diet again with | |
110 | The "Invisible Weight Loss Patch" | |
111 | (spam e-mail) | |
112 | ||
113 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
114 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
115 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
116 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |