]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.cpp
Merge branch 'master' into features/indexmacros
[lyx.git] / src / insets / InsetCommand.cpp
index 67ff5fc6b6ed8c7618a875f1b3b459eac19bf63f..9ca958b5f880857c6195614fa93dcdf9d14cc50c 100644 (file)
@@ -216,6 +216,9 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
                }
                InsetCommandParams p(p_.code());
                InsetCommand::string2params(to_utf8(cmd.argument()), p);
+               if (p == p_)
+                       // no change
+                       break;
                if (p.getCmdName().empty())
                        cur.noScreenUpdate();
                else {
@@ -226,6 +229,8 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
                                string const data = InsetCommand::params2string(p);
                                lyx::dispatch(FuncRequest(LFUN_INSET_INSERT, data));
                                lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_FORWARD));
+                               cur.forceBufferUpdate();
+                               break;
                        } else
                                setParams(p);
                }