mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
8de80cc1e7
commit
3b870366b4
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user