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

Re: Any limitation of autocmd when the bufdo is processing ?

Expand Messages
  • Bram Moolenaar
    ... This patch should fix it: ... *************** *** 7925,7931 **** new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what))); if (new_ei != NULL) { !
    Message 1 of 7 , Mar 1, 2010
    • 0 Attachment
      Antony Scriven wrote:

      > I vaguely wrote:
      >
      > > [...]
      > >
      > > Me too. It looks to me like 'ei' is being set to
      > > ",Syntax" which is causing do_set() to fail
      >
      > ... on a subsequent ":set ei+=".
      >
      > I hope that's clearer. --Antony

      This patch should fix it:

      *** ../vim-7.2.377/src/fileio.c 2010-01-19 14:59:14.000000000 +0100
      --- src/fileio.c 2010-03-01 21:01:04.000000000 +0100
      ***************
      *** 7925,7931 ****
      new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
      if (new_ei != NULL)
      {
      ! STRCAT(new_ei, what);
      set_string_option_direct((char_u *)"ei", -1, new_ei,
      OPT_FREE, SID_NONE);
      vim_free(new_ei);
      --- 7925,7934 ----
      new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
      if (new_ei != NULL)
      {
      ! if (*what == ',' && *p_ei == NUL)
      ! STRCPY(new_ei, what + 1);
      ! else
      ! STRCAT(new_ei, what);
      set_string_option_direct((char_u *)"ei", -1, new_ei,
      OPT_FREE, SID_NONE);
      vim_free(new_ei);


      --
      TALL KNIGHT OF NI: Ni!
      "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.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • winterTTr
      ... Thanks Bram and everyone. I will try to compile and use the latest version. ... -- You received this message from the vim_dev maillist. Do not top-post!
      Message 2 of 7 , Mar 1, 2010
      • 0 Attachment
        On Tue, Mar 2, 2010 at 4:02 AM, Bram Moolenaar <Bram@moolenaar.net> wrote:

        Antony Scriven wrote:

        > I vaguely wrote:
        >
        >  > [...]
        >  >
        >  > Me too. It looks to me like 'ei' is being set to
        >  > ",Syntax" which is causing do_set() to fail
        >
        > ... on a subsequent ":set ei+=".
        >
        > I hope that's clearer. --Antony

        This patch should fix it:

        *** ../vim-7.2.377/src/fileio.c 2010-01-19 14:59:14.000000000 +0100
        --- src/fileio.c        2010-03-01 21:01:04.000000000 +0100
        ***************
        *** 7925,7931 ****
               new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
               if (new_ei != NULL)
               {
        !           STRCAT(new_ei, what);
                   set_string_option_direct((char_u *)"ei", -1, new_ei,
                                                                 OPT_FREE, SID_NONE);
                   vim_free(new_ei);
        --- 7925,7934 ----
               new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
               if (new_ei != NULL)
               {
        !           if (*what == ',' && *p_ei == NUL)
        !               STRCPY(new_ei, what + 1);
        !           else
        !               STRCAT(new_ei, what);
                   set_string_option_direct((char_u *)"ei", -1, new_ei,
                                                                 OPT_FREE, SID_NONE);
                   vim_free(new_ei);

        Thanks Bram and everyone.
        I will try to compile and use the latest version.
         


        --
        TALL KNIGHT OF NI: Ni!
                        "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    ///

        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php
      Your message has been successfully submitted and would be delivered to recipients shortly.