]> git.lyx.org Git - features.git/commitdiff
Restore the wrap-around question when no more hits found while searching with Advance...
authorTommaso Cucinotta <tommaso@lyx.org>
Sat, 13 Nov 2010 11:35:37 +0000 (11:35 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sat, 13 Nov 2010 11:35:37 +0000 (11:35 +0000)
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36277 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 37b54160a89677c518973e4ab61bb77fab0cad9e..488a998810f1f37b4abdba2be7d49274d7eb448e 100644 (file)
@@ -1541,6 +1541,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                iss >> opt;
                if (findAdv(this, opt))
                        dr.screenUpdate(Update::Force | Update::FitCursor);
+               else
+                       dispatched = false;
                break;
        }