beloglazov / vim-online-thesaurus

A Vim plugin for looking up words in an online thesaurus
Apache License 2.0
247 stars 21 forks source link

Prevent bufwinnr() from showing an error message #26

Closed annagrram closed 9 years ago

annagrram commented 9 years ago

When 'debug' is set, bufwinnr() displays an error message saying the thesaurus buffer is missing if the thesaurus window is closed. According to the documentation, this function returns -1 when a buffer's window can't be found. This value is checked for and acted upon properly, so there is no need for that error message, especially when it bothers people (#25)

jalvesaq commented 9 years ago

It works! Thanks!

beloglazov commented 9 years ago

Thanks for investigating and fixing this issue!