vim-grammarous icon indicating copy to clipboard operation
vim-grammarous copied to clipboard

Discard the result from GrammarousCheck if current buffer changed.

Open skywind3000 opened this issue 6 years ago • 1 comments

Reproduce:

  1. run :GrammarousCheck in the current window (say window 1).

  2. jump to another window (window 2), immediately before LanguageTool finish.

  3. 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 ??

skywind3000 avatar Dec 21 '18 13:12 skywind3000

any update for this ?

skywind3000 avatar Mar 19 '20 16:03 skywind3000