mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Spell check: Fix replacing a word and then replacing the new word again not working without doing a refresh in between
This commit is contained in:
parent
1d4a0cd24b
commit
7af2683b7d
1 changed files with 2 additions and 0 deletions
|
|
@ -701,6 +701,8 @@ def remove_word(self, row):
|
|||
self.update_word(w)
|
||||
|
||||
def replace_word(self, w, new_word):
|
||||
for location in self.words[w]:
|
||||
location.original_word = new_word
|
||||
if w[0] == new_word:
|
||||
return w
|
||||
new_key = (new_word, w[1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue