Closed arp242 closed 6 years ago
Hm, https://github.com/chrisbra/Colorizer/blob/e6876f6f390de7039116efe348a754f121d8ce77/autoload/Colorizer.vim#L1682-L1687
this intentionally disabled storing the match result in the w:match_list
variable. I do not remember why I did this, but I think this was, because when matchaddpo()
was added to Vim, the result could not be used by setmach()
or something like this.
Well, let's just try to enable this and see if this causes any problems.
Cheers, thanks!
The issue seems related to the
empty(w:match_list)
check inColorizer#ColorToggle()
(see below). CallingColorizer#ColorOff()
directly works fine.Then in Vim enable colours; all good:
Note
w:match_list
is empty; after calling:ColorToggle
the colours stay and nothing seems to happen?w:match_list
is populated afterwards though:Calling it a second time disabled colours and removes the
w:match_list
variable: