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

Re: foldexpr crash (6.0ad) [patch]

Expand Messages
  • Bram Moolenaar
    ... [...] ... It s still here. This patch should fix it: ... *************** *** 2185,2191 **** && (level lvl - flp- start || level = flp- had_end)) lvl =
    Message 1 of 4 , May 2, 2001
      Chris Houser wrote:

      > I think I stumbled onto a bug. Try editting a file containing
      > (between and not including the --- lines):

      [...]

      > Then load the file with :so %
      > Then go to the top and open a new line with 1Go
      > Vim catches a deadly SEGV

      It's still here. This patch should fix it:

      *** fold.c~ Wed May 2 12:22:14 2001
      --- fold.c Wed May 2 12:24:39 2001
      ***************
      *** 2185,2191 ****
      && (level > lvl - flp->start || level >= flp->had_end))
      lvl = 0;

      ! if (flp->lnum > bot && !finish)
      {
      /* For "marker" and "syntax" methods:
      * - If a change caused a nested fold to be removed, we need to
      --- 2185,2191 ----
      && (level > lvl - flp->start || level >= flp->had_end))
      lvl = 0;

      ! if (flp->lnum > bot && !finish && fp != NULL)
      {
      /* For "marker" and "syntax" methods:
      * - If a change caused a nested fold to be removed, we need to

      --
      hundred-and-one symptoms of being an internet addict:
      38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail
      on the way back to bed.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.