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

Patch 7.1.183

Expand Messages
  • Bram Moolenaar
    Patch 7.1.183 Problem: Internal error for :echo matchstr( a , bb a %[ &] ) (Mitanu Paul) Solution: Inside %[] detect &, | and ) as an error.
    Message 1 of 1 , Jan 2, 2008
    • 0 Attachment
      Patch 7.1.183
      Problem: "Internal error" for ":echo matchstr('a', bb'a\%[\&]')" (Mitanu
      Paul)
      Solution: Inside "\%[]" detect \&, \| and \) as an error.
      Files: src/regexp.c


      *** ../vim-7.1.182/src/regexp.c Sun Dec 9 19:25:35 2007
      --- src/regexp.c Wed Jan 2 15:02:37 2008
      ***************
      *** 1288,1295 ****
      }

      /*
      ! * regbranch - one alternative of an | operator
      ! *
      * Implements the & operator.
      */
      static char_u *
      --- 1288,1294 ----
      }

      /*
      ! * Handle one alternative of an | operator.
      * Implements the & operator.
      */
      static char_u *
      ***************
      *** 1330,1337 ****
      }

      /*
      ! * regbranch - one alternative of an | or & operator
      ! *
      * Implements the concatenation operator.
      */
      static char_u *
      --- 1329,1335 ----
      }

      /*
      ! * Handle one alternative of an | or & operator.
      * Implements the concatenation operator.
      */
      static char_u *
      ***************
      *** 1708,1713 ****
      --- 1706,1713 ----
      case Magic('|'):
      case Magic('&'):
      case Magic(')'):
      + if (one_exactly)
      + EMSG_ONE_RET_NULL;
      EMSG_RET_NULL(_(e_internal)); /* Supposed to be caught earlier. */
      /* NOTREACHED */

      ***************
      *** 3106,3112 ****
      * slow, we keep one allocated piece of memory and only re-allocate it when
      * it's too small. It's freed in vim_regexec_both() when finished.
      */
      ! static char_u *reg_tofree;
      static unsigned reg_tofreelen;

      /*
      --- 3106,3112 ----
      * slow, we keep one allocated piece of memory and only re-allocate it when
      * it's too small. It's freed in vim_regexec_both() when finished.
      */
      ! static char_u *reg_tofree = NULL;
      static unsigned reg_tofreelen;

      /*
      *** ../vim-7.1.182/src/version.c Wed Jan 2 15:12:29 2008
      --- src/version.c Wed Jan 2 15:33:52 2008
      ***************
      *** 668,669 ****
      --- 668,671 ----
      { /* Add new patch number below this line */
      + /**/
      + 183,
      /**/

      --
      Not too long ago, unzipping in public was illegal...

      /// 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.