Loading ...
Sorry, an error occurred while loading the content.

Patch 7.1.229

Expand Messages
  • Bram Moolenaar
    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.
    Message 1 of 1 , Jan 14, 2008
    • 0 Attachment
      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@... -- 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 ///

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.