]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
Fix bug 3024 (http://bugzilla.lyx.org/show_bug.cgi?id=3024).
[lyx.git] / src / text3.C
index f7d9a8806df63939c6974acf49b38d85feff05fc..83150ec5f1861fddd22ef4bdec71575918850fb8 100644 (file)
@@ -1028,15 +1028,15 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                        setCursorFromCoordinates(cur, cmd.x, y);
                        cur.x_target() = cmd.x;
                        if (cmd.y >= wh)
-                               cursorDown(cur);
+                               lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT));
                        else if (cmd.y < 0)
-                               cursorUp(cur);
+                               lyx::dispatch(FuncRequest(LFUN_UP_SELECT));
                        // This is to allow jumping over large insets
                        if (cur.top() == old) {
                                if (cmd.y >= wh)
-                                       cursorDown(cur);
+                                       lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT));
                                else if (cmd.y < 0)
-                                       cursorUp(cur);
+                                       lyx::dispatch(FuncRequest(LFUN_UP_SELECT));
                        }
 
                        if (cur.top() == old)