]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.229
- typo
[packages/vim.git] / 7.1.229
CommitLineData
d57b4abe
ER
1To: vim-dev@vim.org
2Subject: Patch 7.1.229
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.229
11Problem: A fold is closed when it shouldn't when 'foldmethod' is "indent"
12 and backspacing a non-white character so that the indent increases.
13Solution: Keep the fold open after backspacing a character.
14Files: 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--
47ROBIN: (warily) And if you get a question wrong?
48ARTHUR: You are cast into the Gorge of Eternal Peril.
49ROBIN: 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.08558 seconds and 4 git commands to generate.