Patch 8.2.4005

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4005 Problem:Error messages are spread out. Solution: Move more error messages to errors.h. Files: src/errors.h, src/dict.c, src/eval.c, src/evalfunc.c, src/evalvars.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_eval.c, src/filepath.c, src/gui.c, src/gui_w

Patch 8.2.4004

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4004 Problem:Old compiler complains about struct init with variable. Solution: Set the struct member later. (John Marriott) Files: src/evalfunc.c *** ../vim-8.2.4003/src/evalfunc.c 2022-01-04 15:16:57.879864882 + --- src/evalfunc.c 2022-01-04 20:03:47.2101641

Re: Patch 8.2.3897

2022-01-04 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 26-Dec-2021 08:48, Bram Moolenaar wrote: > > Patch 8.2.3897 > > Problem:Vim9: the second argument of map() and filter() is not checked > > at > > compile time. > > Solution: Add more specific type check for the second argument. > > Files: src/ev

Patch 8.2.4003

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4003 Problem:Error messages are spread out. Solution: Move more error messages to errors.h. Files: src/errors.h, src/channel.c, src/ex_docmd.c, src/ex_eval.c, src/gui_at_fs.c, src/hardcopy.c, src/if_cscope.c, src/menu.c, src/netbeans.c, src/optionstr.c

Re: Patch 8.2.3897

2022-01-04 Fir de Conversatie John Marriott
On 26-Dec-2021 08:48, Bram Moolenaar wrote: Patch 8.2.3897 Problem:Vim9: the second argument of map() and filter() is not checked at compile time. Solution: Add more specific type check for the second argument. Files: src/evalfunc.c, src/globals.h, src/list.c,

Patch 8.2.4002

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4002 Problem:First char typed in Select mode can be wrong. Solution: Escape special bytes in the input buffer. (closes #9469) Files: src/getchar.c, src/testdir/test_utf8.vim *** ../vim-8.2.4001/src/getchar.c 2022-01-04 17:01:40.598663106 + --- src/getchar.c

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Fir de Conversatie Marvin Renich
* Bram Moolenaar [220104 12:26]: > Marvin Renich wrote: > > * Bram Moolenaar [220103 12:33]: [snip] > > I agree that using the (cleansed) file name is suboptimal, but it was > > the simplest choice. There are a couple other possibilities. One is to > > require the "as" clause. [snip] > > Every

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Fir de Conversatie Bram Moolenaar
Marvin Renich wrote: > * Bram Moolenaar [220103 12:33]: > > > On 2022-01-03, Marvin Renich wrote: > > > > Don't bother with the > > > > > > > import MyClass from "myclass.vim" > > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > > > syntax, and only provide > > > > > > >

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Fir de Conversatie Marvin Renich
* Bram Moolenaar [220103 12:33]: > > On 2022-01-03, Marvin Renich wrote: > > > Don't bother with the > > > > > import MyClass from "myclass.vim" > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > syntax, and only provide > > > > > > import "myclass.vim" > > > import "myc

Patch 8.2.4001

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4001 Problem:Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470) Files: src/edit.c, src/getchar.c, src/globals.h, src/insexpand.c, src/proto/insexpand.pr

Patch 8.2.4000

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.4000 Problem:Coverity warns for checking for NULL pointer after using it. Solution: Remove check for NULL. Files: src/help.c *** ../vim-8.2.3999/src/help.c 2022-01-03 12:53:20.662699885 + --- src/help.c 2022-01-04 16:35:24.784734861 + *** *** 836,843 *

Patch 8.2.3999

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.3999 Problem:Redundant check for NUL byte. Solution: Remove the check for a NUL byte. (closes #9471) Files: src/ex_docmd.c *** ../vim-8.2.3998/src/ex_docmd.c 2022-01-02 20:20:41.377033186 + --- src/ex_docmd.c 2022-01-04 16:21:19.522034690 + ***

Patch 8.2.3998

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.3998 Problem:Asan error for adding zero to NULL. Solution: Do not compute pointer if there are no entries. Files: src/vim9type.c *** ../vim-8.2.3997/src/vim9type.c 2022-01-04 15:16:57.879864882 + --- src/vim9type.c 2022-01-04 16:04:24.467573961 + *

Patch 8.2.3997

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.3997 Problem:Vim9: not enough testing for extend() and map(). Solution: Add more test cases. Fix uncovered problems. Remove unused type fields. Files: src/structs.h, src/dict.c, src/list.c, src/vim9compile.c, src/testdir/test_vim9_builtin.vim,

Patch 8.2.3996

2022-01-04 Fir de Conversatie Bram Moolenaar
Patch 8.2.3996 Problem:Vim9: type checking for list and dict lacks information about declared type. Solution: Add dv_decl_type and lv_decl_type. Refactor the type stack to store two types in each entry. Files: src/structs.h, src/dict.c, src/list.c, src/vim9type