Patch 8.2.1126
Problem: Vim9: using :copen causes an error.
Solution: Add flag LET_NO_COMMAND in set_var().
Files: src/evalvars.c, src/testdir/test_vim9_script.vim
*** ../vim-8.2.1125/src/evalvars.c 2020-07-01 18:29:23.685143414 +0200
--- src/evalvars.c 2020-07-04 17:37:13.798948792 +0200
***************
*** 2852,2858 ****
typval_T *tv,
int copy) // make copy of value in "tv"
{
! set_var_const(name, NULL, tv, copy, 0);
}
/*
--- 2852,2858 ----
typval_T *tv,
int copy) // make copy of value in "tv"
{
! set_var_const(name, NULL, tv, copy, LET_NO_COMMAND);
}
/*
*** ../vim-8.2.1125/src/testdir/test_vim9_script.vim 2020-07-04 13:15:26.510990159 +0200
--- src/testdir/test_vim9_script.vim 2020-07-04 17:36:52.243030920 +0200
***************
*** 2219,2224 ****
--- 2219,2230 ----
delete('Xvim9_script.vim')
enddef
+ def Test_vim9_copen()
+ # this was giving an error for setting w:quickfix_title
+ copen
+ quit
+ enddef
+
" Keep this last, it messes up highlighting.
def Test_substitute_cmd()
new
*** ../vim-8.2.1125/src/version.c 2020-07-04 14:14:55.637073457 +0200
--- src/version.c 2020-07-04 17:35:05.043439503 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1126,
/**/
--
|
Ceci n'est pas une pipe.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///