lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
274 stars 37 forks source link

Translate path change ignores subsequent text edits #54

Closed fominok closed 1 year ago

fominok commented 1 year ago

Hello, I've noticed a strange behavior on C-p (by default) in go-translate's minibuffer. Whatever I type first and then change translation path will be saved as my query ignoring any changes since C-p was pressed, here is an example:

  1. [en -> ru] asdfasf
  2. [ru -> en] (changed the path, erase everything as not needed)
  3. [ru -> en] какой-то осмысленный текст
  4. Hit enter, got ru -> en translation of asdfasf from 1.

If 1. is empty, then I'll get Text should not be null.