]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Do not overwrite read-only files. We now move the file to the backup directory and...
[lyx.git] / src / BufferView.cpp
index 37b54160a89677c518973e4ab61bb77fab0cad9e..9f61d39825471c45b86e434261ee41cc5556b257 100644 (file)
@@ -1539,8 +1539,14 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                FindAndReplaceOptions opt;
                istringstream iss(to_utf8(cmd.argument()));
                iss >> opt;
-               if (findAdv(this, opt))
+               if (findAdv(this, opt)) {
                        dr.screenUpdate(Update::Force | Update::FitCursor);
+                       cur.dispatched();
+                       dispatched = true;
+               } else {
+                       cur.undispatched();
+                       dispatched = false;
+               }
                break;
        }