vim-grammarous
vim-grammarous copied to clipboard
Discard the result from GrammarousCheck if current buffer changed.
Reproduce:
-
run
:GrammarousCheckin the current window (say window 1). -
jump to another window (window 2), immediately before LanguageTool finish.
-
stay in window 2, and wait the background job finish.
vim-grammarous was started in window 1, and was expected to display highlights and underlines in window 1, but actually, it always display errors in the current window (window 2).
Is it possible to check the buffer number when background job finished ? and do nothing if the current buffer number is not the previous one where :GrammarousCheck started ??
any update for this ?