]> git.lyx.org Git - lyx.git/commitdiff
I am basically trying here to get rid of random calls to
authorRichard Heck <rgheck@comcast.net>
Thu, 14 Oct 2010 14:47:33 +0000 (14:47 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 14 Oct 2010 14:47:33 +0000 (14:47 +0000)
processUpdateFlags. This one is easy.

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

src/Text3.cpp
src/frontends/qt4/GuiApplication.cpp

index 4dd686a19624c6fb2241f50f24102109662ffb65..0a86d7cc3b636e9c78c09aa7c1030fbd2b319c91 100644 (file)
@@ -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: {
index 5c511a32338a1f1d282fc5295009d5a5a8e0efe5..48d8e510d8a3ed18e22dcfd6a1f0536e237dcecc 100644 (file)
@@ -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);
 }