Why does foldexpr make autocomplete really slow?

2015-04-30 Fir de Conversatie Rich
Hi I've noticed since using foldexpr that and particularly L are really slow (like up to 10 seconds on the latter in a big file). I noticed that if I set fdm=manual before doing the autocomplete, it's as fast as you like. I asked the question at http://vi.stackexchange.com/questions/3128/i

Re: [patch] Fix wrapping in pointer arithmetic

2015-04-30 Fir de Conversatie Bram Moolenaar
James McCoy wrote: > Patch 7.4.710 introduced a condition which relies on adding MAXCOL to a > pointer. This can cause the resulting value to wrap, this causing the > check for lcs_space to fail. > > This is easy to see on i386 when building with -fPIE in CFLAGS/LDFLAGS and > -pie in LDFLAGS.

Re: [patch] extend() does not change an item in a locked dictionary

2015-04-30 Fir de Conversatie Bram Moolenaar
Olaf Dabrunz wrote: > Example: > > :let d = {'a': 99, 'b': 100} > :lockvar 1 d > :call extend(d, {'a': 123}) > E741: Value is locked: extend() argument > :let d.a = 123 > :let d > d {'a': 123, 'b': 100} > > The dictionary is locked, but th

Re: [patch] extend() does not change an item in a locked dictionary

2015-04-30 Fir de Conversatie Nikolay Pavlov
2015-04-30 10:56 GMT+03:00 Olaf Dabrunz : > Example: > > :let d = {'a': 99, 'b': 100} > :lockvar 1 d > :call extend(d, {'a': 123}) > E741: Value is locked: extend() argument > :let d.a = 123 > :let d > d {'a': 123, 'b': 100} > > The dictionary

Re: text-object with single quoted string

2015-04-30 Fir de Conversatie Ben Fritz
On Thursday, April 30, 2015 at 9:17:33 AM UTC-5, Ben Fritz wrote: > On Thursday, April 30, 2015 at 2:27:30 AM UTC-5, mattn wrote: > > > > > > You lost me here. I would either expect this to select "foo\", or if it's > > > smart, to do the same as before and select just the outer parenthesis. > >

Re: text-object with single quoted string

2015-04-30 Fir de Conversatie Ben Fritz
On Thursday, April 30, 2015 at 2:27:30 AM UTC-5, mattn wrote: > > > > You lost me here. I would either expect this to select "foo\", or if it's > > smart, to do the same as before and select just the outer parenthesis. > > Neither happens. In the first line (double quote case) nothing at all >

[patch] Fix wrapping in pointer arithmetic

2015-04-30 Fir de Conversatie James McCoy
Patch 7.4.710 introduced a condition which relies on adding MAXCOL to a pointer. This can cause the resulting value to wrap, this causing the check for lcs_space to fail. This is easy to see on i386 when building with -fPIE in CFLAGS/LDFLAGS and -pie in LDFLAGS. Running test_listchars will fail

[patch] extend() does not change an item in a locked dictionary

2015-04-30 Fir de Conversatie Olaf Dabrunz
Example: :let d = {'a': 99, 'b': 100} :lockvar 1 d :call extend(d, {'a': 123}) E741: Value is locked: extend() argument :let d.a = 123 :let d d {'a': 123, 'b': 100} The dictionary is locked, but the 'a' item is not, so extend() on 'a' should

Re: [patch V2] 'list += list' changes locked/RO list; issues changing v:oldfiles

2015-04-30 Fir de Conversatie Olaf Dabrunz
This version is slightly updated to apply after 7.4.708. BTW, thanks to you and mattn for doing 7.4.708 ("gettext() is called too often"). diff -r 18d84ed365a5 src/eval.c --- a/src/eval.cWed Apr 22 22:18:22 2015 +0200 +++ b/src/eval.cThu Apr 30 09:06:32 2015 +0200 @@ -783,7 +783,

Re: text-object with single quoted string

2015-04-30 Fir de Conversatie mattn
On Thursday, April 30, 2015 at 6:30:23 AM UTC+9, Ben Fritz wrote: > I can confirm this, I would expect the whole outer parenthesis content to be > selected, instead, nothing at all happens on the second line. The first line > works as expected. > > > And when type "vi(" on 'f', it should not sel