From: Richard Heck Date: Thu, 14 Oct 2010 14:47:33 +0000 (+0000) Subject: I am basically trying here to get rid of random calls to X-Git-Tag: 2.0.0~2381 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3af1fa5abba5e6c3d4533037edf7bfc5e835315a;p=features.git I am basically trying here to get rid of random calls to processUpdateFlags. This one is easy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35650 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 4dd686a196..0a86d7cc3b 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1942,6 +1942,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (!cmd.argument().empty()) // FIXME: Are all these characters encoded in one byte in utf8? bv->translateAndInsert(cmd.argument()[0], this, cur); + cur.screenUpdateFlags(Update::FitCursor); break; case LFUN_FLOAT_LIST_INSERT: { diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 5c511a3233..48d8e510d8 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -1685,7 +1685,6 @@ void GuiApplication::handleKeyFunc(FuncCode action) d->keyseq.clear(); // copied verbatim from do_accent_char bv->cursor().resetAnchor(); - bv->processUpdateFlags(Update::FitCursor); }