]> 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>
Fri, 11 May 2012 15:37:41 +0000 (17:37 +0200)
commitdbcfbe5b76d4748a1d7013f32e8d2678ad9ae2ef
treeb53d28e5d5a599dbdffe281e4abddffeca0b8da2
parentb27f3755ae42f107ed7cfd378830ca4cd371f490
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