]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.229
- recognize update_mime_database
[packages/vim.git] / 7.1.229
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.229
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.229
11 Problem:    A fold is closed when it shouldn't when 'foldmethod' is "indent"
12             and backspacing a non-white character so that the indent increases.
13 Solution:   Keep the fold open after backspacing a character.
14 Files:      src/edit.c
15
16
17 *** ../vim-7.1.228/src/edit.c   Sat Jan 12 18:13:05 2008
18 --- src/edit.c  Mon Jan 14 20:06:43 2008
19 ***************
20 *** 8618,8623 ****
21 --- 8619,8632 ----
22       if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == 0)
23         dollar_vcol = curwin->w_virtcol;
24   
25 + #ifdef FEAT_FOLDING
26 +     /* When deleting a char the cursor line must never be in a closed fold.
27 +      * E.g., when 'foldmethod' is indent and deleting the first non-white
28 +      * char before a Tab. */
29 +     if (did_backspace)
30 +       foldOpenCursor();
31 + #endif
32
33       return did_backspace;
34   }
35   
36 *** ../vim-7.1.228/src/version.c        Sun Jan 13 21:57:25 2008
37 --- src/version.c       Mon Jan 14 20:08:35 2008
38 ***************
39 *** 668,669 ****
40 --- 668,671 ----
41   {   /* Add new patch number below this line */
42 + /**/
43 +     229,
44   /**/
45
46 -- 
47 ROBIN:  (warily) And if you get a question wrong?
48 ARTHUR: You are cast into the Gorge of Eternal Peril.
49 ROBIN:  Oh ... wacho!
50                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
51
52  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
53 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
54 \\\        download, build and distribute -- http://www.A-A-P.org        ///
55  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.0443 seconds and 3 git commands to generate.