diff src/vim9script.c @ 24079:a9ff8368d35f v8.2.2581

patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redraw Commit: https://github.com/vim/vim/commit/37294bd6a2afbf0fc8a1c34cbe102336b0bd0a82 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 10 13:40:08 2021 +0100 patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redraw Problem: Vim9: sourcing Vim9 script triggers a redraw. Solution: Do not let setting/restoring 'cpoptions' cause a redraw. (closes #7920)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Mar 2021 13:45:03 +0100
parents fc4c2beea99a
children 0346a59ed5bf
line wrap: on
line diff
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -75,7 +75,7 @@ ex_vim9script(exarg_T *eap UNUSED)
     if (STRCMP(p_cpo, CPO_VIM) != 0)
     {
 	si->sn_save_cpo = vim_strsave(p_cpo);
-	set_option_value((char_u *)"cpo", 0L, (char_u *)CPO_VIM, 0);
+	set_option_value((char_u *)"cpo", 0L, (char_u *)CPO_VIM, OPT_NO_REDRAW);
     }
 #else
     // No check for this being the first command, it doesn't matter.