Don't move the point after correcting spelling
Added save-excursion to helm-flyspell-correct so that the point does not jump after a word is spellchecked.
Note, that this diff looks big but I really just added save-excursion and re-indented everything.
Can you say a bit more in which specific situation does the cursor jump? Do you mean when the word is misspelled or correct?
@pronobis both. The cursor jumps to the end of the word. At least with my current emacs configuration. Is this intended?
I don't think helm-flyspell should change the position of the cursor. Or at the very least, this should be user configurable.
So looking further at the code, you might have done this intentionally as a response to #3.
However, in my opinion, the cursor should be put back where it originally was, not necessarily at the end of the word that was just corrected. Do you disagree with this behavior? Would it be better if this behavior was customizable?