From 529b9ad62a0e843ee56ef609aef7e51b7dc8a4c8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 5 Jun 2024 20:27:06 +0200 Subject: patch 9.1.0469: Cannot have buffer-local value for 'completeopt' Problem: Cannot have buffer-local value for 'completeopt' (Nick Jensen). Solution: Make 'completeopt' global-local (zeertzjq). Also for some reason test Test_ColonEight_MultiByte seems to be failing sporadically now. Let's mark it as flaky. fixes: #5487 closes: #14922 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- runtime/optwin.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/optwin.vim') diff --git a/runtime/optwin.vim b/runtime/optwin.vim index d3e1605ed0..f218ffba20 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -1,7 +1,7 @@ " These commands create the option window. " " Maintainer: The Vim Project -" Last Change: 2023 Aug 31 +" Last Change: 2024 Jun 05 " Former Maintainer: Bram Moolenaar " If there already is an option window, jump to that one. @@ -846,7 +846,7 @@ if has("insert_expand") call append("$", "\t" .. s:local_to_buffer) call OptionL("cpt") call AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) - call OptionG("cot", &cot) + call OptionL("cot") if exists("+completepopup") call AddOption("completepopup", gettext("options for the Insert mode completion info popup")) call OptionG("cpp", &cpp) -- cgit v1.2.3