Page 1 of 1

code completion, brackets not added after pressing enter

Posted: Fri Aug 17, 2018 9:43 pm
by shadowsocks
For example, I type

Code: Select all

vector < int > V;
for(i=0;i<V.s)
and the "V.size()" item appeared in the completion box.
Then I press enter and the code become

Code: Select all

vector < int > V;
for(i=0;i<V.size)
instead of

Code: Select all

vector < int > V;
for(i=0;i<V.size())
Note that this will only happen if there is already a ')' next to "V.s" before completion.

This had not appeared in older versions, and I cannot understand what its benefits are.

Is that a new feature in recent weekly builds?

Re: code completion, brackets not added after pressing enter

Posted: Sun Aug 19, 2018 6:58 pm
by eranif
This was a regression which is now fixed in git master