Closed sbraz closed 3 years ago
I can't reproduce this and don't remember ever seeing it.
That word
is set to None when the navigation status is reset, i.e. a new subtitle is assigned, cursor set to beginning and no misspelled word yet found. The dialog should be iterating over misspelled words and thus providing actions only when there is a misspelled word. Somehow the navigation state gets confused here, but I can't tell how.
https://github.com/otsaloma/gaupol/blob/master/aeidon/spell.py#L229
Hi Osmo, It's not the first time I run into this exception but I am not exactly sure what triggers it. I am simply clicking "replace" or "replace all" and I get this:
The word I am replacing is pretty normal, I don't know why it would be
None
. The replacement is performed too, I can see it in the edited subtitle.It seems to happen near the end of the spellcheck. After the exception happens, I cannot click ignore either, I get a similar error:
If I click "edit", the text that appears in the box is a few dozen lines later.
Even closing the spellcheck window triggers an exception: