diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-04 17:39:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-04 17:39:10 +0200 |
commit | eeb27bfe28ad6f889c52628268acbe30a7584e30 (patch) | |
tree | 9c62bfdf0bc78dc47f37387bbf3905caae55a053 /src | |
parent | 962d7213194647e90f9bdc608f693d39dd07cbd5 (diff) | |
download | vim-git-eeb27bfe28ad6f889c52628268acbe30a7584e30.tar.gz |
patch 8.2.1126: Vim9: using :copen causes an errorv8.2.1126
Problem: Vim9: using :copen causes an error.
Solution: Add flag LET_NO_COMMAND in set_var().
Diffstat (limited to 'src')
-rw-r--r-- | src/evalvars.c | 2 | ||||
-rw-r--r-- | src/testdir/test_vim9_script.vim | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index 131486750..3dab22bb2 100644 --- 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 index 841162141..e54871798 100644 --- 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 index b36f248f8..d1607ae15 100644 --- 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, |