mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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().
This commit is contained in:
@@ -2852,7 +2852,7 @@ set_var(
|
|||||||
typval_T *tv,
|
typval_T *tv,
|
||||||
int copy) // make copy of value in "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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -2219,6 +2219,12 @@ def Test_source_vim9_from_legacy()
|
|||||||
delete('Xvim9_script.vim')
|
delete('Xvim9_script.vim')
|
||||||
enddef
|
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.
|
" Keep this last, it messes up highlighting.
|
||||||
def Test_substitute_cmd()
|
def Test_substitute_cmd()
|
||||||
new
|
new
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1126,
|
||||||
/**/
|
/**/
|
||||||
1125,
|
1125,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user