Re: Bug: Inconsistent result with searchpair()?

2015-09-25 Thread David Fishburn
On Thu, Sep 24, 2015 at 1:22 AM, Christian Brabandt wrote: > Hi David! > > On Mi, 23 Sep 2015, David Fishburn wrote: > > > Christian, do you think it is worth putting together a reproducible > > that should work with basic Vim? > > Sure, If you get a reproducible test, I'll

Bug: Inconsistent result with searchpair()?

2015-09-23 Thread David Fishburn
Windows 8.1 Vim 7.4.1-873 In one of my plugins I am seeing inconsistent behaviour with searchpair() When it runs, it returns 0, when the cursor is in the exact same position and I run it a second time, it correctly finds the matching ). When I run it myself from :echo searchpair() it always

Re: Bug: Inconsistent result with searchpair()?

2015-09-23 Thread Christian Brabandt
On Mi, 23 Sep 2015, David Fishburn wrote: > Windows 8.1 Vim 7.4.1-873 > > In one of my plugins I am seeing inconsistent behaviour with searchpair() > > When it runs, it returns 0, when the cursor is in the exact same position and > I > run it a second time, it correctly finds the matching ).

Re: Bug: Inconsistent result with searchpair()?

2015-09-23 Thread David Fishburn
On Wed, Sep 23, 2015 at 12:24 PM, Christian Brabandt wrote: > > On Mi, 23 Sep 2015, David Fishburn wrote: > > > > > I am about to run this searchpair() function > > line 38: let indent_to = searchpair( '(', '', ')', 'W', 'synID(line > > ("."),col("."),1)>0' ) > > > > So,

Re: Bug: Inconsistent result with searchpair()?

2015-09-23 Thread David Fishburn
> > ... > When I choose :SQLSetType plsql.vim instead of :SQLSetType > sqlanywhere.vim, the problem also goes away. > > I take that back, if I use a more complex query with more ()s in it, using the runtime\syntax\plsql.vim, the same error is reported, just a little later on. So it seems that the

Re: Bug: Inconsistent result with searchpair()?

2015-09-23 Thread Christian Brabandt
Hi David! On Mi, 23 Sep 2015, David Fishburn wrote: > Christian, do you think it is worth putting together a reproducible > that should work with basic Vim? Sure, If you get a reproducible test, I'll look into it. Best, Christian -- "Vollkommenheit ist die Norm des Himmels; Vollkommenes