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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202007041539.064FdbNG348790%40masaka.moolenaar.net.

Raspunde prin e-mail lui