Re: searchpos bug

2006-11-16 Thread Bram Moolenaar

Viktor Kojouharov wrote:

> It seems that searchpos doesn't match under the cursor, when the
> cursor itself is on the first column. You can try the simple search
> pos command below, and try searching for anything non-whitespace. Even
> with the 'c' flag, it will still move the cursor to the first matched
> character on the previous line, instead of matching the character in
> the first column.
> 
> call searchpos('[^[:space:]]', 'bWc')

I see the problem.  I'll add it to the todo list.

-- 
hundred-and-one symptoms of being an internet addict:
253. You wait for a slow loading web page before going to the toilet.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- 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///


searchpos bug

2006-11-16 Thread Viktor Kojouharov

It seems that searchpos doesn't match under the cursor, when the
cursor itself is on the first column. You can try the simple search
pos command below, and try searching for anything non-whitespace. Even
with the 'c' flag, it will still move the cursor to the first matched
character on the previous line, instead of matching the character in
the first column.

call searchpos('[^[:space:]]', 'bWc')