summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-10 13:40:08 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-10 13:40:08 +0100
commit37294bd6a2afbf0fc8a1c34cbe102336b0bd0a82 (patch)
treec0a34b9f1c02015af208be03a2d27920ac1a64f0 /src/scriptfile.c
parente3ffcd9902efc756178900d9bd972c74a09c3fcd (diff)
downloadvim-git-37294bd6a2afbf0fc8a1c34cbe102336b0bd0a82.tar.gz
patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redrawv8.2.2581
Problem: Vim9: sourcing Vim9 script triggers a redraw. Solution: Do not let setting/restoring 'cpoptions' cause a redraw. (closes #7920)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c2
1 files changed, 1 insertions, 1 deletions
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);
}