Bug in :sh introduced at 8.2.1833

2020-12-07 Fir de Conversatie Gary Johnson
Starting with 8.2.1833, the :sh command no longer works when vim is reading text from stdin. The screen flashes, but nothing else happens. To demonstrate this, execute the following: $ ls | vim -N -u NONE - :sh Using git bisect, I found the offending commit. $ git bisect bad 20

[PATCH] Handle case of unmapped K when exiting termdebug

2020-12-07 Fir de Conversatie vim
From: Rene Kita If K is not mapped to anything the dictionary is empty and the if clause is false. K is then still mapped to :Evaluate. This will result in an error E492 when using K. --- Steps to reproduce: - :unmap K - :packadd termdebug - :Termdebug - quit - :map K runtime/pack/dist/opt/ter

[PATCH] Handle case of unmapped K when exiting termdebug

2020-12-07 Fir de Conversatie vim
From: Rene Kita If K is not mapped to anything the dictionary is empty and the if clause is false. K is then still mapped to :Evaluate. This will result in an error E492 when using K. --- Steps to reproduce: - :unmap K - :packadd termdebug - :Termdebug - quit - :map K runtime/pack/dist/opt/te

[PATCH] Handle case of unmapped K when exiting termdebug

2020-12-07 Fir de Conversatie vim
-- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubs

Patch 8.2.2107

2020-12-07 Fir de Conversatie Bram Moolenaar
Patch 8.2.2107 Problem:Vim9: some errors not tested. Solution: Add tests. Fix getting the right error. Files: src/vim9compile.c, src/testdir/test_vim9_assign.vim, src/testdir/test_vim9_expr.vim *** ../vim-8.2.2106/src/vim9compile.c 2020-12-06 20:12:39.754611585 +0100 -

Re: [PATCH] runtime: syntax: diff: fix for modern format

2020-12-07 Fir de Conversatie Felipe Contreras
On Mon, Dec 7, 2020 at 11:54 AM Bram Moolenaar wrote: > Felipe Contreras wrote: > > But it doesn't work. I want to distinguish the file ("^diff\>.*" aka > > diffFile) from the new file ("^+++ .*" aka diffNewFile). > > > > So in my colorscheme I have diffNewFile: 'green', diffOldFile: 'red', > > d

Re: [PATCH] runtime: syntax: diff: fix for modern format

2020-12-07 Fir de Conversatie Bram Moolenaar
Felipe Contreras wrote: > > > Nowadays most people use the unified diff, which has this format: > > > > > > --- a/foo > > > +++ b/foo > > > > > > In that case the old file starts with '---', but currently that's > > > considered the new file, since the old context format is like: > > > > > >

Re: [PATCH] Handle case of unmapped K when exiting termdebug

2020-12-07 Fir de Conversatie Bram Moolenaar
Rene Kita wrote; > If K is not mapped to anything the dictionary is empty and the if clause > is false. K is then still mapped to :Evaluate. This will result in an > error E492 when using K. > --- > > Steps to reproduce: > - :unmap K > - :packadd termdebug > - :Termdebug > - quit > - :map K Th

Re: Vim9: Not able to add a new field to a dict which is a dict member

2020-12-07 Fir de Conversatie Bram Moolenaar
Yegappan wrote: > The following Vim9 function fails with "E1141: Indexable type required": > > == > vim9script > > def g:Test() > var req = {} > req.params = {} > req.params.id = 10 > echomsg req > enddef > call g:Test() > ===

Patch 8.2.2106

2020-12-07 Fir de Conversatie Bram Moolenaar
Patch 8.2.2106 Problem:TOML files are not recognized. Solution: Match *.toml. (issue #7432) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.2105/runtime/filetype.vim2020-12-03 21:08:32.948412699 +0100 --- runtime/filetype.vim2020-12-07 18:02

Re: [vim/vim] TOML (#7432)

2020-12-07 Fir de Conversatie Maxim Kim
> For a temporary solution you better set the right filetype (probably > "toml"), and add a syntax file that loads the yaml syntax for now. > Then it's easier for a user to drop in another toml.vim in their own > .vim/syntax directory to overrule it. I have my own toml syntax (ftdetect, ft

[PATCH] Handle case of unmapped K when exiting termdebug

2020-12-07 Fir de Conversatie vim
From: Rene Kita If K is not mapped to anything the dictionary is empty and the if clause is false. K is then still mapped to :Evaluate. This will result in an error E492 when using K. --- Steps to reproduce: - :unmap K - :packadd termdebug - :Termdebug - quit - :map K runtime/pack/dist/opt/te