]>
Commit | Line | Data |
---|---|---|
d57b4abe ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.212 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.212 | |
11 | Problem: Accessing a byte before a line. | |
12 | Solution: Check that the column is 1 or more. (Dominuque Pelle) | |
13 | Files: src/edit.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.211/src/edit.c Sun Jan 6 20:05:36 2008 | |
17 | --- src/edit.c Mon Jan 7 22:31:36 2008 | |
18 | *************** | |
19 | *** 8452,8457 **** | |
20 | --- 8452,8458 ---- | |
21 | if ( mode == BACKSPACE_CHAR | |
22 | && ((p_sta && in_indent) | |
23 | || (curbuf->b_p_sts != 0 | |
24 | + && curwin->w_cursor.col > 0 | |
25 | && (*(ml_get_cursor() - 1) == TAB | |
26 | || (*(ml_get_cursor() - 1) == ' ' | |
27 | && (!*inserted_space_p | |
28 | *** ../vim-7.1.211/src/version.c Sun Jan 6 20:05:36 2008 | |
29 | --- src/version.c Wed Jan 9 10:11:49 2008 | |
30 | *************** | |
31 | *** 668,669 **** | |
32 | --- 668,671 ---- | |
33 | { /* Add new patch number below this line */ | |
34 | + /**/ | |
35 | + 212, | |
36 | /**/ | |
37 | ||
38 | -- | |
39 | CRONE: Who sent you? | |
40 | ARTHUR: The Knights Who Say Ni! | |
41 | CRONE: Aaaagh! (she looks around in rear) No! We have no shrubberies here. | |
42 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
43 | ||
44 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
45 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
46 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
47 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |