Open blueyed opened 10 years ago
I'm sorry but I currently don't have the time to debug interaction with a plugin I personally don't use.
What's the path that is used for doautocmd?
I was wrong about the doautocmd
- at least it's not triggered currently anymore.
But instead the problem is just that fugitive writes the file, before adding it to the index: https://github.com/tpope/vim-fugitive/blob/9835920a3c91236021fc8c88cc4157304e24356b/plugin/fugitive.vim#L1527-L1541
But instead the problem is just that fugitive writes the file, before adding it to the index
Is there still a problem then? Can it be fixed by using a different set of events for updating vcsdiff signs?
The problem is still present and I can solve it by rereading the file (e
)
You can try to define g:quickfixsigns_class_vcsdiff
in vimrc
let g:quickfixsigns_class_vcsdiff = {'sign': '*quickfixsigns#vcsdiff#Signs', 'get': 'quickfixsigns#vcsdiff#GetList(%s)', 'event': ['BufRead', 'BufWritePost'], 'level': 6}
and maybe add other events to g:quickfixsigns_class_vcsdiff.event
. If you don't find an appropriate event, you could ask t pope to call a User event in fugitive#reload_status()
.
TEST CASE:
dd
):Gwrite
(writes the current file to the index)quickfixsigns will place a
-1
sign, although there is no (non-cached) difference.A second
:Gwrite
will remove the sign.The
doautocmd
code from fugitive is here: https://github.com/tpope/vim-fugitive/blob/master/plugin/fugitive.vim#L2211-L2215