Open jparoz opened 7 years ago
Can't seem to reproduce with same macOS, script
, and mvim versions 😖 Does this occur with a minimal .vimrc
as well, i.e. taking everything out except for a plugin manager + Codi?
With vimrc:
filetype plugin indent on
syntax on
packloadall
and contents of .vim:
I'm still getting the described behaviour. Are there any dependencies I'm not thinking of, or anything else I could have configured differently?
Issue description
When I'm using Codi while editing a Lua file in MacVim, if the file is not modified, Codi updates every time I move the cursor. This is in contrast to what happens when the file is modified, when Codi updates every time the text changes (when
TextChanged
orTextChangedI
fires). As far as I can tell, this only happens with Lua files.Steps to reproduce:
mvim foo.lua
print(os.date())
:w
):Codi
) Now Codi is updated whenever the cursor is moved, even though text hasn't changed.print("foo")
) The frantic updating stops, and Codi now updates as expected, when text is changed.u
) The buffer is no longer'modified'
, and erratic behaviour resumes.After modifing the buffer the first time after saving (here with
print("foo")
), Codi works as expected, even after saving again, until I useu
to undo into a state where the buffer is not modified.Other undesirable behaviours include syntax highlighting flickering off and on whenever Codi is erratically updating, and the undo history sometimes (seemingly randomly) being clobbered.
Environment
Running macOS Sierra (10.12.1) Last line of
script
manpage is BSD December 4 2013The log file is over two thousand lines long, generated in about 30 seconds. Almost every keypress generates several log lines when this issue is happening, which may make the log hard to read.
Output of
mvim --version
: