From 37294bd6a2afbf0fc8a1c34cbe102336b0bd0a82 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 Mar 2021 13:40:08 +0100 Subject: 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) --- src/scriptfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scriptfile.c') diff --git a/src/scriptfile.c b/src/scriptfile.c index 82ae42a1a..1e4b5ccf7 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1459,7 +1459,7 @@ almosttheend: si = SCRIPT_ITEM(current_sctx.sc_sid); if (si->sn_save_cpo != NULL) { - set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0); + set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, OPT_NO_REDRAW); VIM_CLEAR(si->sn_save_cpo); } -- cgit v1.2.1