Андрей, On Thu, Mar 28, 2013 at 7:07 PM, Андрей Радев <[email protected]> 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
