Fixed "non selection" when hit a word with the spellchecker.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2479 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2001-08-10 11:07:07 +00:00
parent 8de80cc1e7
commit 3b870366b4
3 changed files with 8 additions and 1 deletions

View File

@ -346,8 +346,10 @@ void BufferView::selectLastWord()
{
if (!available()) return;
LyXCursor cur = text->selection.cursor;
hideCursor();
beforeChange(text);
text->selection.cursor = cur;
text->selectSelectedWord(this);
toggleSelection(false);
update(text, BufferView::SELECT|BufferView::FITCUR);

View File

@ -1,3 +1,8 @@
2001-08-10 Juergen Vigna <jug@sad.it>
* BufferView2.C (selectLastWord): save the selection cursor as this
now is cleared in the function LyXText::clearSelection!
2001-08-08 Juergen Vigna <jug@sad.it>
* BufferView_pimpl.C (Dispatch): use a non-cut-buffer cut on DELTE

View File

@ -2264,7 +2264,7 @@ bool LyXText::selectWordWhenUnderCursor(BufferView * bview,
// This function is only used by the spellchecker for NextWord().
// It doesn't handle LYX_ACCENTs and probably never will.
string const LyXText::selectNextWord(BufferView * bview,
float & value) const
float & value) const
{
if (the_locking_inset) {
string str = the_locking_inset->selectNextWord(bview, value);