]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.201
- typo
[packages/vim.git] / 7.1.201
CommitLineData
d2415672
AG
1To: vim-dev@vim.org
2Subject: Patch 7.1.201
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.201
11Problem: When reading stdin 'fenc' and 'ff are not set.
12Solution: Set the options after reading stdin. (Ben Schmidt)
13Files: src/fileio.c
14
15
16*** ../vim-7.1.200/src/fileio.c Wed Jan 2 21:07:32 2008
17--- src/fileio.c Fri Jan 4 16:18:27 2008
18***************
19*** 221,231 ****
20 {
21 int fd = 0;
22 int newfile = (flags & READ_NEW);
23- int set_options = newfile || (eap != NULL && eap->read_edit);
24 int check_readonly;
25 int filtering = (flags & READ_FILTER);
26 int read_stdin = (flags & READ_STDIN);
27 int read_buffer = (flags & READ_BUFFER);
28 linenr_T read_buf_lnum = 1; /* next line to read from curbuf */
29 colnr_T read_buf_col = 0; /* next char to read from this line */
30 char_u c;
31--- 221,232 ----
32 {
33 int fd = 0;
34 int newfile = (flags & READ_NEW);
35 int check_readonly;
36 int filtering = (flags & READ_FILTER);
37 int read_stdin = (flags & READ_STDIN);
38 int read_buffer = (flags & READ_BUFFER);
39+ int set_options = newfile || read_buffer
40+ || (eap != NULL && eap->read_edit);
41 linenr_T read_buf_lnum = 1; /* next line to read from curbuf */
42 colnr_T read_buf_col = 0; /* next char to read from this line */
43 char_u c;
44***************
45*** 650,657 ****
46
47 if (set_options)
48 {
49! curbuf->b_p_eol = TRUE;
50! curbuf->b_start_eol = TRUE;
51 #ifdef FEAT_MBYTE
52 curbuf->b_p_bomb = FALSE;
53 curbuf->b_start_bomb = FALSE;
54--- 651,663 ----
55
56 if (set_options)
57 {
58! /* Don't change 'eol' if reading from buffer as it will already be
59! * correctly set when reading stdin. */
60! if (!read_buffer)
61! {
62! curbuf->b_p_eol = TRUE;
63! curbuf->b_start_eol = TRUE;
64! }
65 #ifdef FEAT_MBYTE
66 curbuf->b_p_bomb = FALSE;
67 curbuf->b_start_bomb = FALSE;
68*** ../vim-7.1.200/src/version.c Fri Jan 4 16:00:10 2008
69--- src/version.c Fri Jan 4 16:27:01 2008
70***************
71*** 668,669 ****
72--- 668,671 ----
73 { /* Add new patch number below this line */
74+ /**/
75+ 201,
76 /**/
77
78--
79A mathematician is a device for turning coffee into theorems.
80 Paul Erdos
81A computer programmer is a device for turning coffee into bugs.
82 Bram Moolenaar
83
84 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
85/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
86\\\ download, build and distribute -- http://www.A-A-P.org ///
87 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.079909 seconds and 4 git commands to generate.