# HG changeset patch # User Bram Moolenaar # Date 1593877503 -7200 # Node ID 951aad18b1afd6fd7719b49ec7f6ba7c421fe51a # Parent 88c6f4be165f620eafaaa9a0e86a1acfb4bdb8ae patch 8.2.1126: Vim9: using :copen causes an error Commit: https://github.com/vim/vim/commit/eeb27bfe28ad6f889c52628268acbe30a7584e30 Author: Bram Moolenaar 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(). diff --git a/src/evalvars.c b/src/evalvars.c --- 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); } /* diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim --- 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 diff --git a/src/version.c b/src/version.c --- 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,