// The test for not selection possible is needed, that only motion
// events are used, where the bottom press event was on
- // the drawing area too
+ // the drawing area too
if (!selection_possible)
return;
// We are in inset locking mode
// Check whether the inset was hit. If not reset mode,
- // otherwise give the event to the inset
+ // otherwise give the event to the inset
if (inset_hit == bv_->theLockingInset()) {
FuncRequest cmd(bv_, LFUN_MOUSE_PRESS, xpos, ypos, button);
bv_->theLockingInset()->localDispatch(cmd);
} else {
text->selectWord(bv_, LyXText::WHOLE_WORD_STRICT);
}
- // This will fit the cursor on the screen if necessary
+ // This will fit the cursor on the screen if necessary
update(text, BufferView::SELECT|BufferView::FITCUR);
workarea().haveSelection(bv_->getLyXText()->selection.set());
}
if (text->bv_owner) {
screen().toggleSelection(text, bv_, false);
}
- // This will fit the cursor on the screen if necessary
+ // This will fit the cursor on the screen if necessary
update(text, BufferView::SELECT|BufferView::FITCUR);
workarea().haveSelection(bv_->getLyXText()->selection.set());
}
*/
-inline
void BufferView::Pimpl::moveCursorUpdate(bool selecting, bool fitcur)
{
LyXText * lt = bv_->getLyXText();
Buffer::inset_iterator end = b->inset_iterator_end();
bool cursor_par_seen = false;
-
+
for (; beg != end; ++beg) {
if (beg.getPar() == cursor.par()) {
cursor_par_seen = true;
break;
}
}
-
+
}
if (beg != end) {
// Now find the first inset that matches code.