]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
leave inset to the right when hitting ESC (bug 2034)
[lyx.git] / src / text3.C
index 051bf8630d8eb2dc7a5f37b70ed20e15da4300b2..5786a51e9728c5482ab5ba14a484dad22c34b040 100644 (file)
@@ -919,6 +919,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                cur.clearSelection();
                string const clip = bv->getClipboard();
                if (!clip.empty()) {
+                       recordUndo(cur);
                        if (cmd.argument == "paragraph")
                                insertStringAsParagraphs(cur, clip);
                        else
@@ -1514,7 +1515,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                        cur.selection() = false;
                } else {
                        cur.undispatched();
-                       cmd = FuncRequest(LFUN_FINISHED_LEFT);
+                       cmd = FuncRequest(LFUN_FINISHED_RIGHT);
                }
                break;