With this autocmd:
autocmd OptionSet modified echom localtime()
modify any file. The autocmd is not triggered.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
I suppose it works, if you do :set modified? It's a known issue that it only works when setting the option directly and not by simply flipping the C state variables.
Is there a workaround that works with autocmd?
Not sure it can be backported to vim, but nvim made OptionSet work for modified: neovim/neovim#35610
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()