X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.C;h=7de71684d5d8267f2de39d929e5b4b88325e2ce3;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=6f9d361354b72574057f2f892dc142e27d466f24;hpb=78aa7c69879a001657838d54f8d149af6507978b;p=lyx.git diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 6f9d361354..7de71684d5 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1715,15 +1715,11 @@ void LyXFunc::dispatch(FuncRequest const & cmd) // Redraw screen unless explicitly told otherwise. // This also initializes the position cache for all insets // in (at least partially) visible top-level paragraphs. - bool needSecondUpdate = false; - if (updateFlags != Update::None) - view()->update(updateFlags); - else - needSecondUpdate = view()->fitCursor(); + std::pair needSecondUpdate = view()->update(updateFlags); + + if (needSecondUpdate.first) + view()->buffer()->changed(needSecondUpdate.second); - if (needSecondUpdate || updateFlags != Update::None) { - view()->buffer()->changed(updateFlags & Update::SinglePar); - } lyx_view_->updateStatusBar(); // if we executed a mutating lfun, mark the buffer as dirty @@ -1740,8 +1736,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd) if (!quitting) { lyx_view_->updateMenubar(); lyx_view_->updateToolbars(); - // FIXME UNICODE: _() does not support anything but ascii. - // Do we need a to_ascii() method? sendDispatchMessage(getMessage(), cmd); } } @@ -2094,6 +2088,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new) case LyXRC::RC_LOADSESSION: case LyXRC::RC_CHKTEX_COMMAND: case LyXRC::RC_CONVERTER: + case LyXRC::RC_CONVERTER_CACHE_MAXAGE: case LyXRC::RC_COPIER: case LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR: case LyXRC::RC_CUSTOM_EXPORT_COMMAND: @@ -2190,6 +2185,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new) case LyXRC::RC_USER_NAME: case LyXRC::RC_USETEMPDIR: case LyXRC::RC_USE_ALT_LANG: + case LyXRC::RC_USE_CONVERTER_CACHE: case LyXRC::RC_USE_ESC_CHARS: case LyXRC::RC_USE_INP_ENC: case LyXRC::RC_USE_PERS_DICT: