]> git.lyx.org Git - features.git/blobdiff - src/Text3.cpp
Fix bug 5149: Pasting outside math when cursor is inside
[features.git] / src / Text3.cpp
index 14f03da35ef0d9200e1baabbd75dce739a2c9aca..d98635c9aa158dac79d36f930422cab56465e66b 100644 (file)
@@ -1160,6 +1160,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
                case mouse_button::button2:
                        // Middle mouse pasting.
+                       bv->mouseSetCursor(cur);
                        if (!cap::selection()) {                        
                                // There is no local selection in the current buffer, so try to
                                // paste primary selection instead.