]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettabular.C
more cleanup:
[lyx.git] / src / insets / insettabular.C
index 979706645ad7c9dd397fa109cf052c453326b012..849bf95079b7966784bcc9eb737913a072acdc6f 100644 (file)
@@ -500,8 +500,7 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
                        && (&bvcur.selBegin().inset() != this || !tablemode(bvcur)))) {
                        cur.selection() = false;
                        setCursorFromCoordinates(cur, cmd.x, cmd.y);
-                       cur.resetAnchor();
-                       bvcur = cur;
+                       cur.bv().mouseSetCursor(cur);
                        break;
                }
 
@@ -661,7 +660,7 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
        // insert file functions
        case LFUN_FILE_INSERT_ASCII_PARA:
        case LFUN_FILE_INSERT_ASCII: {
-               // FIXME: We don't know the encoding of filenames
+               // FIXME UNICODE
                string const tmpstr = getContentsOfAsciiFile(&cur.bv(), to_utf8(cmd.argument()), false);
                // FIXME: We don't know the encoding of the file
                if (!tmpstr.empty() && !insertAsciiString(cur.bv(), from_utf8(tmpstr), false))