Ron89 / thesaurus_query.vim

Multi-language Thesaurus Query and Replacement plugin for Vim/NeoVim
http://www.vim.org/scripts/script.php?script_id=5341
Apache License 2.0
220 stars 23 forks source link

<Leader> cs + ^C ---> raise vim error #8

Closed petRUShka closed 8 years ago

petRUShka commented 8 years ago

It is widely used to press ^C (Ctrl+C) for cancellation any command in VIM. When you use ^C during thesaurus_query it is raising following error.

Error detected while processing function thesaurus_query#Thesaurus_Query_Lookup:
line   22:
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/user/.vim/plugged/thesaurus_query.vim/autoload/thesaurus_query/thesaurus_que
ry.py", line 192, in tq_replace_cursor_word_from_candidates
    thesaurus_user_choice = vim.eval("input('Type number and <Enter> (empty cancels): ')")
KeyboardInterrupt
Ron89 commented 8 years ago

It's a Error_Handler issue. I should be able to fix it by adding 'KeyboardInterrupt' exception handler. Thanks for pointing it out. I'll fix it as soon as I'm free.

petRUShka commented 8 years ago

Thanks, now it is working!