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

Re: Changed search() behavior in patchset 875

Expand Messages
  • glts
    Андрей, ... you re not the first to notice: https://groups.google.com/d/msg/vim_dev/c80CG2vMnkQ/zI5Cvoa3yd8J A patch is waiting to be checked in. David
    Message 1 of 4 , Mar 28, 2013
    • 0 Attachment
      Андрей,

      On Thu, Mar 28, 2013 at 7:07 PM, Андрей Радев <andrey.radev@...> wrote:
      > In patchlevel 875, the search() function seems to have changed its
      > behavior when the "c" flag is given. Here's an example:
      >
      > foo = "bar#baz"
      >
      > if the cursor is after the "#" (on "baz", for instance) and you
      > execute the following:
      >
      > call search('#', '', 1)
      >
      > Then, the cursor will not be moved, since the search goes forward by
      > default. However, if you call this:
      >
      > call search('#', 'c', 1)
      >
      > The cursor jumps to the "#". This doesn't seem to be affected by the
      > "W" flag either.
      >
      > This was discovered when pressing "o" on coffeescript that has
      > embedded code within a string. Example:
      >
      > foo = "bar#{baz}bla"
      >
      > The problem turned out to be that the indent script is calling a
      > search() with the "c" flag. This was working in patchlevel 861.

      you're not the first to notice:

      https://groups.google.com/d/msg/vim_dev/c80CG2vMnkQ/zI5Cvoa3yd8J

      A patch is waiting to be checked in.

      David

      --
      --
      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 because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Andrew
      ... Sorry, I didn t realize it was a search() issue before starting the email. I ll wait for the patch :). Regards, Andrew. -- -- You received this message
      Message 2 of 4 , Mar 28, 2013
      • 0 Attachment
        > you're not the first to notice:

        Sorry, I didn't realize it was a search() issue before starting the email. I'll wait for the patch :).

        Regards,
        Andrew.

        --
        --
        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 because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • anyrails
        yes,wait for a patch to be applied 2013/3/29 Andrew ... -- -- You received this message from the vim_dev maillist. Do not top-post!
        Message 3 of 4 , Mar 30, 2013
        • 0 Attachment
          yes,wait for a patch to be applied


          2013/3/29 Andrew <andrey.radev@...>
          > you're not the first to notice:

          Sorry, I didn't realize it was a search() issue before starting the email. I'll wait for the patch :).

          Regards,
          Andrew.

          --
          --
          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 because you are subscribed to the Google Groups "vim_dev" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.



          --
          --
          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 because you are subscribed to the Google Groups "vim_dev" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
           
           
        Your message has been successfully submitted and would be delivered to recipients shortly.