Patch 8.2.2756

2021-04-11 Fir de Conversatie Bram Moolenaar
Patch 8.2.2756 Problem:Vim9: blob index and slice not implemented yet. Solution: Implement blob index and slice. Files: src/vim9compile.c, src/vim9.h, src/vim9execute.c, src/eval.c, src/blob.c, src/proto/blob.pro, src/testdir/test_vim9_expr.vim ***

Re: Wrong % behaviour (with matchit) when "language messages en" is within the scope on an if statement

2021-04-11 Fir de Conversatie Christian Brabandt
On So, 11 Apr 2021, Bram Moolenaar wrote: > > Doug Kearns wrote: > > > On Sun, 11 Apr 2021 at 22:53, Bram Moolenaar wrote: > > > It is possible to only match "endif" at the start of the line or after a > > > bar: > > > > > > '\:\%(^\||\)\s*el\%[seif]\>:\%(^\||\)\s*en\%[dif]\>,' > > >

Re: Wrong % behaviour (with matchit) when "language messages en" is within the scope on an if statement

2021-04-11 Fir de Conversatie Bram Moolenaar
Doug Kearns wrote: > On Sun, 11 Apr 2021 at 22:53, Bram Moolenaar wrote: > > It is possible to only match "endif" at the start of the line or after a > > bar: > > > > '\:\%(^\||\)\s*el\%[seif]\>:\%(^\||\)\s*en\%[dif]\>,' > > > > But then the cursor will move to the start of the line or

Patch 8.2.2755

2021-04-11 Fir de Conversatie Bram Moolenaar
Patch 8.2.2755 Problem:Vim9: no error for using a number in a condition. Solution: Also use ISN_COND2BOOL if the type is t_number_bool. (closes #7644) Files: src/vim9compile.c, src/testdir/test_vim9_expr.vim, src/testdir/test_vim9_disassemble.vim ***

Re: Wrong % behaviour (with matchit) when "language messages en" is within the scope on an if statement

2021-04-11 Fir de Conversatie Doug Kearns
On Sun, 11 Apr 2021 at 22:53, Bram Moolenaar wrote: > It is possible to only match "endif" at the start of the line or after a > bar: > > '\:\%(^\||\)\s*el\%[seif]\>:\%(^\||\)\s*en\%[dif]\>,' > > But then the cursor will move to the start of the line or the bar. > Putting in \zs to

Re: Wrong % behaviour (with matchit) when "language messages en" is within the scope on an if statement

2021-04-11 Fir de Conversatie Bram Moolenaar
Tony wrote: > My vimrc includes the following snippet: > > if has('unix') > language messages C > else > language messages en > endif > > I just noticed that repeatedly hitting % (with matchit enabled) cycles > from the if to the else to the en in "language messages en" and back. > % on

Patch 8.2.2754

2021-04-11 Fir de Conversatie Bram Moolenaar
Patch 8.2.2754 Problem::sleep! does not always hide the cursor. Solution: Add the cursor_is_asleep flag. (Jeremy Lerner, closes #8097, closes #7998) Files: src/drawscreen.c, src/ex_docmd.c, src/gui.c, src/proto/term.pro, src/term.c ***