]> git.lyx.org Git - features.git/commit
In replaceSelectionWithString, do not select the new string
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Apr 2012 10:44:31 +0000 (12:44 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Apr 2012 10:44:31 +0000 (12:44 +0200)
commita117a51226537d202ee264fedc125de9b8c957b1
tree342b30c23009111be2a6e93be42b0331f0764575
parentbd171efb8cd91de40a5b1af236f1a4a2ee4e206d
In replaceSelectionWithString, do not select the new string

This is a patch from Scott Kostyshak. The problem it solves is as follows:

1. enable continuous spell check.
2. type a misspelled word and press space so that it has a wavy red underline.
3. right-click and choose a suggested replacement word.
4. press the backspace button.

Result: nothing happens. If you press the backspace button again, then it works as normal.

The selection code was added for the benefit of the spellchecker, but the code has been rewritten since then.
src/CutAndPaste.cpp
src/CutAndPaste.h
src/lyxfind.cpp