changeset 21150:951aad18b1af v8.2.1126

patch 8.2.1126: Vim9: using :copen causes an error Commit: https://github.com/vim/vim/commit/eeb27bfe28ad6f889c52628268acbe30a7584e30 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 4 17:39:10 2020 +0200 patch 8.2.1126: Vim9: using :copen causes an error Problem: Vim9: using :copen causes an error. Solution: Add flag LET_NO_COMMAND in set_var().
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Jul 2020 17:45:03 +0200
parents 88c6f4be165f
children 26daca3f46b6
files src/evalvars.c src/testdir/test_vim9_script.vim src/version.c
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -2852,7 +2852,7 @@ set_var(
     typval_T	*tv,
     int		copy)	    // make copy of value in "tv"
 {
-    set_var_const(name, NULL, tv, copy, 0);
+    set_var_const(name, NULL, tv, copy, LET_NO_COMMAND);
 }
 
 /*
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -2219,6 +2219,12 @@ def Test_source_vim9_from_legacy()
   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
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1126,
+/**/
     1125,
 /**/
     1124,