]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Whitespace.
[lyx.git] / src / BufferView.cpp
index 5a690ddf62f86944a33caea21cc09fd6c4dc167c..f70661ad8c588c27aef42dcbc4d94bff77bcf6b4 100644 (file)
@@ -1503,9 +1503,16 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                break;
        }
 
-       case LFUN_WORD_FINDADV:
-               findAdv(this, cmd);
+       case LFUN_WORD_FINDADV: {
+               FindAndReplaceOptions opt;
+               istringstream iss(to_utf8(cmd.argument()));
+               iss >> opt;
+               if (findAdv(this, opt))
+                       cur.dispatched();
+               else
+                       cur.undispatched();
                break;
+       }
 
        case LFUN_MARK_OFF:
                cur.clearSelection();
@@ -2261,7 +2268,8 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
        if (!do_selection && d->cursor_.inTexted())
                update |= checkDepm(cur, d->cursor_);
 
-       d->cursor_.resetAnchor();
+       if (!do_selection)
+               d->cursor_.resetAnchor();
        d->cursor_.setCursor(cur);
        d->cursor_.boundary(cur.boundary());
        if (do_selection)