- patchlevel 229
This commit is contained in:
parent
f15eb2e9f2
commit
fdeddde854
55
7.1.229
Normal file
55
7.1.229
Normal file
@ -0,0 +1,55 @@
|
||||
To: vim-dev@vim.org
|
||||
Subject: Patch 7.1.229
|
||||
Fcc: outbox
|
||||
From: Bram Moolenaar <Bram@moolenaar.net>
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset=ISO-8859-1
|
||||
Content-Transfer-Encoding: 8bit
|
||||
------------
|
||||
|
||||
Patch 7.1.229
|
||||
Problem: A fold is closed when it shouldn't when 'foldmethod' is "indent"
|
||||
and backspacing a non-white character so that the indent increases.
|
||||
Solution: Keep the fold open after backspacing a character.
|
||||
Files: src/edit.c
|
||||
|
||||
|
||||
*** ../vim-7.1.228/src/edit.c Sat Jan 12 18:13:05 2008
|
||||
--- src/edit.c Mon Jan 14 20:06:43 2008
|
||||
***************
|
||||
*** 8618,8623 ****
|
||||
--- 8619,8632 ----
|
||||
if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == 0)
|
||||
dollar_vcol = curwin->w_virtcol;
|
||||
|
||||
+ #ifdef FEAT_FOLDING
|
||||
+ /* When deleting a char the cursor line must never be in a closed fold.
|
||||
+ * E.g., when 'foldmethod' is indent and deleting the first non-white
|
||||
+ * char before a Tab. */
|
||||
+ if (did_backspace)
|
||||
+ foldOpenCursor();
|
||||
+ #endif
|
||||
+
|
||||
return did_backspace;
|
||||
}
|
||||
|
||||
*** ../vim-7.1.228/src/version.c Sun Jan 13 21:57:25 2008
|
||||
--- src/version.c Mon Jan 14 20:08:35 2008
|
||||
***************
|
||||
*** 668,669 ****
|
||||
--- 668,671 ----
|
||||
{ /* Add new patch number below this line */
|
||||
+ /**/
|
||||
+ 229,
|
||||
/**/
|
||||
|
||||
--
|
||||
ROBIN: (warily) And if you get a question wrong?
|
||||
ARTHUR: You are cast into the Gorge of Eternal Peril.
|
||||
ROBIN: Oh ... wacho!
|
||||
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
||||
|
||||
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
||||
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
||||
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
||||
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
Loading…
Reference in New Issue
Block a user