case LFUN_SCREEN_RECENTER:
case LFUN_BIBTEX_DATABASE_ADD:
case LFUN_BIBTEX_DATABASE_DEL:
- case LFUN_GRAPHICS_GROUPS_UNIFY:
case LFUN_NOTES_MUTATE:
case LFUN_ALL_INSETS_TOGGLE:
case LFUN_STATISTICS:
FuncRequest req = cmd;
if (cmd.argument().empty() && !d->search_request_cache_.argument().empty())
req = d->search_request_cache_;
+ if (req.argument().empty()) {
+ theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace"));
+ break;
+ }
if (find(this, req))
showCursor();
else
processUpdateFlags(Update::Force);
break;
- // These two could be rewriten using some command like forall <insetname> <command>
+ // This could be rewriten using some command like forall <insetname> <command>
// once the insets refactoring is done.
- case LFUN_GRAPHICS_GROUPS_UNIFY: {
- if (cmd.argument().empty())
- break;
- graphics::unifyGraphicsGroups(cur.buffer(), to_utf8(cmd.argument()));
- processUpdateFlags(Update::Force | Update::FitCursor);
- break;
- }
-
case LFUN_NOTES_MUTATE: {
if (cmd.argument().empty())
break;