Unexpected results from applying gqj to C line comment

2021-12-28 Fir de Conversatie Gary Johnson
The formatting command gqj exhibits unexpected behavior when executed on a C line comment after a statement. The reformatting is applied only to the first line of the comment and not to the following line. Formatting of C line comments after statements was added with Patch 8.2.3787. It generally

Patch 8.2.3930

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3930 Problem:getcmdline() argument has a misleading type. Solution: Use the correct type, even though the value is not used. Files: src/ex_getln.c, src/proto/ex_getln.pro, src/ex_docmd.c, src/normal.c, src/register.c, src/userfunc.c *** ../vim-8.2.3929/src/ex_ge

Patch 8.2.3929

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3929 Problem:Using unititialized variable. Solution: Set the option flags to zero for a terminal option. Files: src/option.c *** ../vim-8.2.3928/src/option.c2021-12-27 17:21:38.012449123 + --- src/option.c2021-12-28 20:34:53.529150795 + *

Patch 8.2.3928

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3928 Problem:Heredoc test fails. Solution: Correct order of function arguments. Files: src/userfunc.c *** ../vim-8.2.3927/src/userfunc.c 2021-12-28 20:18:46.958997532 + --- src/userfunc.c 2021-12-28 20:45:05.964072236 + *** *** 174,181 g

Patch 8.2.3927

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3927 Problem:Vim9: double free when using lambda. Solution: Don't free both cmdline and line_to_free. Files: src/userfunc.c *** ../vim-8.2.3926/src/userfunc.c 2021-12-28 17:55:22.963786520 + --- src/userfunc.c 2021-12-28 20:13:32.463720698 + **

Re: Patch 8.2.3920

2021-12-28 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 29-Dec-2021 00:16, Bram Moolenaar wrote: > > Patch 8.2.3920 > > Problem:Restoring directory after using another window is inefficient. > > Solution: Only restore the directory for win_execute(). Apply 'autochdir' > > only when needed. > > Files:

Patch 8.2.3926

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3926 (after 8.2.3920) Problem:Build failure without the 'autochdir' option. (John Marriott) Solution: Add #ifdefs. Files: src/evalwindow.c *** ../vim-8.2.3925/src/evalwindow.c2021-12-28 13:15:02.444896152 + --- src/evalwindow.c2021-12-28 20:00:48.357090501 +

Re: Patch 8.2.3920

2021-12-28 Fir de Conversatie John Marriott
On 29-Dec-2021 00:16, Bram Moolenaar wrote: Patch 8.2.3920 Problem:Restoring directory after using another window is inefficient. Solution: Only restore the directory for win_execute(). Apply 'autochdir' only when needed. Files: src/evalwindow.c, src/testdir/test_autochd

Patch 8.2.3925

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3925 Problem:Diff mode confused by NUL bytes. Solution: Handle NUL bytes differently. (Christian Brabandt, closes #9421, closes #9418) Files: src/diff.c, src/testdir/test_diffmode.vim, src/testdir/dumps/Test_diff_bin_01.dump, src/testdir/du

Patch 8.2.3924

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3924 Problem:Vim9: no error if something follows :enddef in a nested function. Solution: Give an error. Move common code to a function. Files: src/userfunc.c, src/vim9compile.c, src/errors.h, src/testdir/test_vim9_func.vim *** ../vim-8.2.3923/src/userfunc.c

Patch 8.2.3923

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3923 Problem:Vim9: double free if a nested function has a line break in the argument list. Solution: Set cmdlinep when freeing the previous line. Files: src/userfunc.c, src/testdir/test_vim9_func.vim *** ../vim-8.2.3922/src/userfunc.c 2021-12-27 17:21:38.02

Patch 8.2.3922

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3922 Problem:Cannot build with dynamic Ruby 3.1. Solution: Add "_EXTRA" variables for CI. Add missing functions. (Ozaki Kiichi, closes #9420) Files: ci/config.mk.clang-12.sed, ci/config.mk.clang.sed, ci/config.mk.sed, src/Makefile, src/auto/configure,

Patch 8.2.3921

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3921 Problem:The way xdiff is used is inefficient. Solution: Use hunk_func instead of the out_line callback. (Lewis Russell, closes #9344) Files: src/diff.c *** ../vim-8.2.3920/src/diff.c 2021-12-27 17:21:38.004449137 + --- src/diff.c 2021-12-28 13:50:11.9

Patch 8.2.3920

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3920 Problem:Restoring directory after using another window is inefficient. Solution: Only restore the directory for win_execute(). Apply 'autochdir' only when needed. Files: src/evalwindow.c, src/testdir/test_autochdir.vim *** ../vim-8.2.3919/src/evalwindow.c

Patch 8.2.3919

2021-12-28 Fir de Conversatie Bram Moolenaar
Patch 8.2.3919 Problem:Vim9: wrong argument for append() results in two errors. Solution: Check did_emsg. Also for setline(). Adjust the help for appendbufline(). Files: runtime/doc/builtin.txt, src/evalbuffer.c, src/typval.c, src/testdir/test_vim9_builtin.vim