Vim9: Not able to use a script local function name in the RHS of an assignment

2021-12-12 Fir de Conversatie Yegappan Lakshmanan
Hi, In a Vim9 script, I am not able to use a script local function in the RHS of an assignment at the script level. But I am able to use it a def function: -- vim9script func s:F() endfunc def T() var

Patch 8.2.3793

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3793 Problem:Using "g:Func" as a funcref does not work in script context because "g:" is dropped. Solution: Keep "g:" in the name. Also add parenthesis to avoid confusing operator prececence. (closes #9336) Files: src/evalvars.c, src/testdir/test_vim9

Patch 8.2.3792

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3792 Problem:Setting *func options insufficiently tested. Solution: Impove tests. (Yegappan Lakshmanan, closes #9337) Files: src/testdir/test_iminsert.vim, src/testdir/test_ins_complete.vim, src/testdir/test_normal.vim, src/testdir/test_quickfix.vim, s

Patch 8.2.3791

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3791 Problem:Build error with +cindent but without +smartindent. Solution: Move declaration of "do_cindent". (John Marriott) Files: src/change.c *** ../vim-8.2.3790/src/change.c2021-12-12 14:16:34.989862195 + --- src/change.c2021-12-12 19:08:32.710607249

Re: Patch 8.2.3787

2021-12-12 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 13-Dec-2021 01:17, Bram Moolenaar wrote: > > Patch 8.2.3787 > > Problem:No proper formatting of a C line comment after a statement. > > Solution: Find the start of the line comment, insert the comment leader= > and > > indent the comment properly. >

Patch 8.2.3790

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3790 Problem:Test for term_gettitle() fails in some environments. Solution: Make the digits after "VIM" optional. (Kenta Sato, closes #9334) Files: src/testdir/test_terminal2.vim *** ../vim-8.2.3789/src/testdir/test_terminal2.vim 2021-10-16 13:00:10.940165406 +0100 --

Re: Patch 8.2.3787

2021-12-12 Fir de Conversatie John Marriott
On 13-Dec-2021 01:17, Bram Moolenaar wrote: Patch 8.2.3787 Problem:No proper formatting of a C line comment after a statement. Solution: Find the start of the line comment, insert the comment leader and indent the comment properly. Files: src/change.c, src/proto/change.p

Re: Patch 8.2.3787

2021-12-12 Fir de Conversatie Gary Johnson
On 2021-12-12, Bram Moolenaar wrote: > Patch 8.2.3787 > Problem:No proper formatting of a C line comment after a statement. > Solution: Find the start of the line comment, insert the comment leader and > indent the comment properly. This is great! Thank you. Regards, Gary --

Patch 8.2.3789

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3789 Problem:Test_window_minimal_size can fail on a slow machine. Solution: Do not rely on timers firing at the expected time. (Ozaki Kiichi, closes #9335) Files: src/testdir/test_window_cmd.vim *** ../vim-8.2.3788/src/testdir/test_window_cmd.vim 2021-12-09

Patch 8.2.3788

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3788 Problem:Lambda for option that is a function may be garbage collected. Solution: Set a reference in the funcref. (Yegappan Lakshmanan, closes #9330) Files: src/eval.c, src/evalbuffer.c, src/evalvars.c, src/gui_xim.c, src/insexpand.c, src/ops.c, sr

Patch 8.2.3787

2021-12-12 Fir de Conversatie Bram Moolenaar
Patch 8.2.3787 Problem:No proper formatting of a C line comment after a statement. Solution: Find the start of the line comment, insert the comment leader and indent the comment properly. Files: src/change.c, src/proto/change.pro, src/search.c, src/proto/search.

Re: [vim/vim] make exists("+cdhome") return 0 on Unix (PR #9331)

2021-12-12 Fir de Conversatie Gary Johnson
On 2021-12-11, Shane-XB-Qian wrote: > yea, perhaps the term should be 'non-unix-like' systems, or 'cdhome' just an > option for 'MS-Windows', better? The term "unix" by itself (with various capitalizations) is used overwhelmingly in the Vim documentation to refer to Unix or Unix-like systems gener