Re: Patch 8.2.4050

2022-01-10 Fir de Conversatie Maxim Kim
Oops, I take it back -- it doesn't work :) вторник, 11 января 2022 г. в 09:31:54 UTC+3, Maxim Kim: > Following: > > import autoload 'comment.vim' > nnoremap gc comment.Toggle() > xnoremap gc comment.Toggle() > nnoremap gcc comment.Toggle() .. '_' > > Now works (as of 8.2.4058) > понедельни

Re: Patch 8.2.4050

2022-01-10 Fir de Conversatie Maxim Kim
Following: import autoload 'comment.vim' nnoremap gc comment.Toggle() xnoremap gc comment.Toggle() nnoremap gcc comment.Toggle() .. '_' Now works (as of 8.2.4058) понедельник, 10 января 2022 г. в 15:17:40 UTC+3, Bram Moolenaar: > > Maxim Kim wrote: > > > I have tried new way of autoload a

Vim9: Not able to invoke one exported function from another

2022-01-10 Fir de Conversatie Yegappan Lakshmanan
Hi, Using the latest Vim, when I source the following script: - vim9script mkdir('Xtest/autoload', 'p') var lines =<< trim END vim9script import "./a.vim" def Xtest#Test(): string return a.F1()

Patch 8.2.4058

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4058 Problem:Vim9: import test failure in wrong line. Solution: Adjust line number. Files: src/testdir/test_vim9_import.vim *** ../vim-8.2.4057/src/testdir/test_vim9_import.vim2022-01-10 21:29:53.380429159 + --- src/testdir/test_vim9_import.vim2022-01-10 21:36:

Patch 8.2.4057

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4057 Problem:Vim9: not fully implementing the autoload mechanism. Solution: Allow for exporting a legacy function. Improve test coverage. Files: src/vim9script.c, src/testdir/test_vim9_import.vim, src/testdir/test_vim9_script.vim *** ../vim-8.2.4056/src/vim9scr

Patch 8.2.4056

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4056 Problem:Vim9: memory leak when exporting function in autoload script. Solution: Fee the name if replacing it. Files: src/scriptfile.c *** ../vim-8.2.4055/src/scriptfile.c2022-01-10 18:06:58.682381797 + --- src/scriptfile.c2022-01-10 19:18:33.246382129 +

Patch 8.2.4055

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4055 Problem:Vim9: line break in expression causes v:errmsg to be filled. (Yegappan Lakshmanan) Solution: Do not give an error when skipping over an expression. Files: src/userfunc.c, src/testdir/test_vim9_expr.vim *** ../vim-8.2.4054/src/userfunc.c 2022-01

Re: Question about the changes made for 7.3.813

2022-01-10 Fir de Conversatie Christian Brabandt
On Fr, 07 Jan 2022, Yegappan Lakshmanan wrote: > Hi Christian, > > I have a question about the changes made to trigger the CompleteDone > autocmd on completion failure (7.3.813). The email thread from 2013 > discussing the need for this change is at > > https://groups.google.com/g/vim_use/c/tS

Patch 8.2.4054

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4054 (after 8.2.4053) Problem:Vim9 script test fails. Solution: Add missing change. Files: src/vim9compile.c *** ../vim-8.2.4053/src/vim9compile.c 2022-01-09 21:32:57.713739111 + --- src/vim9compile.c 2022-01-10 17:50:17.360196476 + *** *** 541,547 *

Re: Vim9: Unexpected error message when using multiple lines with extend()

2022-01-10 Fir de Conversatie Bram Moolenaar
Yegappan wrote: > When I source the following Vim9 script: > > -- > vim9script > > def Test() > var a: dict = {b: {}} > a.b->extend({f1: 1, > f2: 2}) > enddef > v:errmsg = '' > Test(

Patch 8.2.4053

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4053 Problem:Vim9: autoload mechanism doesn't fully work yet. Solution: Define functions and variables with their autoload name, add the prefix when calling a function, find the variable in the table of script variables. Files: src/structs.h, src/scrip

Vim9: Unexpected error message when using multiple lines with extend()

2022-01-10 Fir de Conversatie Yegappan Lakshmanan
Hi, When I source the following Vim9 script: -- vim9script def Test() var a: dict = {b: {}} a.b->extend({f1: 1, f2: 2}) enddef v:errmsg = '' Test() echo v:errmsg --

Patch 8.2.4051

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4051 Problem:Compiler complains about possibly uninitialized variable. Solution: Add code to avoid a compiler warning. (John Marriott) Files: src/scriptfile.c *** ../vim-8.2.4050/src/scriptfile.c2022-01-09 21:32:57.709739119 + --- src/scriptfile.c2022-01-10 11:2

Patch 8.2.4052

2022-01-10 Fir de Conversatie Bram Moolenaar
Patch 8.2.4052 Problem:Not easy to resize a window from a plugin. Solution: Add win_move_separator() and win_move_statusline() functions. (Daniel Steinberg, closes #9486) Files: runtime/doc/builtin.txt, runtime/doc/usr_41.txt, src/evalfunc.c, src/evalwindow.c, s

Re: Patch 8.2.4050

2022-01-10 Fir de Conversatie Bram Moolenaar
Maxim Kim wrote: > I have tried new way of autoload and for me it didn't work (windows > 8.2.4050) > > I have autoload/comment.vim: > > vim9script autoload > > # Toggle comments > # Usage: > # 1. Save in ~/.vim/autoload/comment.vim > # 2. Add following mappings to vimrc: > # import

Re: Patch 8.2.4050

2022-01-10 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 10-Jan-2022 08:37, Bram Moolenaar wrote: > > Patch 8.2.4050 > > Problem:Vim9: need to prefix every item in an autoload script. > > Solution: First step in supporting "vim9script autoload" and "import > > autoload". > > Files: runtime/doc/repeat.t