[PATCH v2] indent: fix for html inside javascript again

2022-07-26 Fir de Conversatie Felipe Contreras
In issue #3205 a monkey patch was mentioned, but it wasn't the proper fix, the proper fix is in GetJavascriptIndent(), which was done in 2018 [1]. The monkey patch screwed all indentation inside blocks, like: function test() { let v1; } test(); We need to

Re: [PATCH] indent: fix for html inside javascript again

2022-07-26 Fir de Conversatie Felipe Contreras
On Tue, Jul 26, 2022 at 3:27 PM Bram Moolenaar wrote: > > > Felipe Contreras wrote: > > > In issue #3205 a monkey patch was mentioned, but it wasn't the proper > > fix, the proper fix is in GetJavascriptIndent(), which was done in > > 2018 [1]. > > > > However, the proper fix was not included, in

Patch 9.0.0089

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0089 Problem:Fuzzy argument completion doesn't work for shell commands. Solution: Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan, closes #10769) Files: src/cmdexpand.c, src/testdir/test_cmdline.vim *** ../vim-9.0.0088/src/cmdexpand.c 2022-06-16

Patch 9.0.0088

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0088 Problem:Pattern for detecting bitbake files is not sufficient. Solution: Adjust the pattern. (Gregory Anders, closes #10743) Files: runtime/autoload/dist/ft.vim, src/testdir/test_filetype.vim *** ../vim-9.0.0087/runtime/autoload/dist/ft.vim2022-07-16

Patch 9.0.0087

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0087 Problem:MS-Windows: CTRL-[ on Belgian keyboard does not work like Esc. Solution: Figure out what the key code means. (Anton Sharonov, closes #10687, closes #10454) Files: src/gui_w32.c *** ../vim-9.0.0086/src/gui_w32.c 2022-07-23 09:52:00.337814264

Patch 9.0.0086

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0086 Problem:Tabline is not redrawn when entering command line. Solution: Set "redraw_tabline". (closes #10771) Files: src/ex_getln.c, src/testdir/test_cmdline.vim *** ../vim-9.0.0085/src/ex_getln.c 2022-07-26 18:12:35.090727070 +0100 --- src/ex_getln.c

[PATCH] indent: fix for html inside javascript again

2022-07-26 Fir de Conversatie Felipe Contreras
In issue #3205 a monkey patch was mentioned, but it wasn't the proper fix, the proper fix is in GetJavascriptIndent(), which was done in 2018 [1]. However, the proper fix was not included, in fact, the javascript files have not been updated since 2017. The monkey patch screwed all indentation

Patch 9.0.0085

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0085 Problem:":write" fails after ":file name" and then ":edit". Solution: Reset BF_NOTEDITED when using ":edit". (closes #10790) Files: src/ex_cmds.c, src/testdir/test_excmd.vim *** ../vim-9.0.0084/src/ex_cmds.c 2022-07-07 22:20:28.445941352 +0100 --- src/ex_cmds.c

Patch 9.0.0084

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0084 Problem:Using "terraform" filetype for .tfvars file is bad. Solution: use "terraform-vars", so that different completion and other mechanisms can be used. (Radek Simko, closes #10755) Files: runtime/filetype.vim, src/testdir/test_filetype.vim ***

Patch 9.0.0083

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0083 Problem:ModeChanged event not triggered when leaving the cmdline window. Solution: Call may_trigger_modechanged(). (closes #10791) Files: src/ex_getln.c, src/testdir/test_autocmd.vim, src/testdir/test_edit.vim *** ../vim-9.0.0082/src/ex_getln.c

Patch 9.0.0082

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0082 (after 9.0.0051) Problem:Cannot interrupt global command from command line. Solution: Reset got_int in another place. (closes #10739) Files: src/ex_getln.c, src/testdir/test_ex_mode.vim, src/testdir/test_global.vim *** ../vim-9.0.0081/src/ex_getln.c

Patch 9.0.0081

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0081 Problem:Command line completion of user command may have duplicates. (Dani Dickstein) Solution: Skip global user command if an identical buffer-local one is defined. (closes #10797) Files: src/usercmd.c, src/testdir/test_cmdline.vim ***

Patch 9.0.0080

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0080 Problem:Compiler warning for size_t to int conversion. Solution: Add type casts. (Mike Williams, closes #10795) Files: src/charset.c, src/drawline.c *** ../vim-9.0.0079/src/charset.c 2022-07-26 11:20:45.116283126 +0100 --- src/charset.c 2022-07-26

Patch 9.0.0079

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0079 Problem:Error in autoload script not reported for 'foldexpr'. Solution: Reset "emsg_off" when auto-loading a script. (closes #10685) Files: src/vim9compile.c, src/testdir/test_vim9_script.vim *** ../vim-9.0.0078/src/vim9compile.c 2022-05-26 21:38:51.0 +0100

Patch 9.0.0078

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0078 Problem:Star register is changed when deleting and both "unnamed" and "unnamedplus" are in 'clipboard'. Solution: Make the use of the star register work as documented. (Ernie Rael, closes #10669) Files: src/register.c, src/testdir/check.vim,

Re: Patch 9.0.0072

2022-07-26 Fir de Conversatie Tony Mechelynck
On Tue, Jul 26, 2022 at 12:43 PM Bram Moolenaar wrote: > > > Tony wrote: > > > On Mon, Jul 25, 2022 at 10:16 PM Bram Moolenaar wrote: > > > > > > > > > Patch 9.0.0072 (after 9.0.0067) > > > Problem:Compiler warning for uninitialized variable. > > > Solution: Initialize it. (John Marriott)

Patch 9.0.0077

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0077 Problem:When switching window in autocmd the restored cursor position may be wrong. Solution: Do not restore the cursor if it was not set. (closes #10775) Files: src/window.c, src/testdir/test_autocmd.vim,

Patch 9.0.0076

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0076 Problem:No test for what patch 8.1.1424 fixes. Solution: Add a test. (closes #10789) Files: src/popupmenu.c, src/testdir/test_popup.vim *** ../vim-9.0.0075/src/popupmenu.c 2022-05-07 18:10:54.0 +0100 --- src/popupmenu.c 2022-07-26 12:22:57.150995547

Re: Patch 9.0.0072

2022-07-26 Fir de Conversatie Bram Moolenaar
Tony wrote: > On Mon, Jul 25, 2022 at 10:16 PM Bram Moolenaar wrote: > > > > > > Patch 9.0.0072 (after 9.0.0067) > > Problem:Compiler warning for uninitialized variable. > > Solution: Initialize it. (John Marriott) > > Files: src/drawline.c > > After this patch, I get a new warning

Patch 9.0.0075

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0075 Problem:Some compilers warn for using an uninitialized variable. (Tony Mechelynck) Solution: Initialize the variable. Files: src/drawline.c *** ../vim-9.0.0074/src/drawline.c 2022-07-25 21:15:40.878155498 +0100 --- src/drawline.c 2022-07-26

Patch 9.0.0074

2022-07-26 Fir de Conversatie Bram Moolenaar
Patch 9.0.0074 Problem:Coverity warns for double free. Solution: Reset cts_text_prop_count when freeing cts_text_props. Files: src/charset.c, src/structs.h *** ../vim-9.0.0073/src/charset.c 2022-07-25 18:35:11.998814206 +0100 --- src/charset.c 2022-07-26