Closed gzqx closed 11 months ago
Same also happens when running :CMakeRun
for the first time.
Hi, thanks a lot for reporting this.
I can indeed reproduce your issue. I believe PR #87 fixes it. Could you please try checking out branch 86-cmake-open-clears-syntax-hl
and let me know if that indeed solves your problem?
Hi, thank your for the so timely fix! I have verified that the 86-***
branch fixes this issue.
Bug description
~~After triggering
:CMakeGenerate
first time in every session, all text in origin buffer become white and have no highlight. (If I reopen the file in the same buffer or runsyntax on
, do some editing and re-run:CMakeGenerate
, this does not happen)~~After testing, this behavior is actually triggered by everytime
:CMakeToggle
is triggered. It seems that on first:CMakeGenerate
or everytime:CMakeRun
is ran in text buffer:CMakeToggle
is called. (Sorry I didn't have the time to dig into the code to check if it is true)Expected behavior
Hightlight does not disappear from the first time.
Behavior with minimal
.vimrc
Same behavior with a minimal
.vimrc
as following:Other info
:echo cmake#GetInfo().version
):0.14.0cmake --version
):3.27.7