]> git.lyx.org Git - features.git/commitdiff
Fix navigation and bookmarks.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 22 Dec 2007 10:19:26 +0000 (10:19 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 22 Dec 2007 10:19:26 +0000 (10:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22255 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp
src/LyXFunc.cpp

index 04bc5091547f194f7a0a746477e6135bbcb0fbb6..1eb4d09026b94459ebdfdc69c88f61f63ee6b205 100644 (file)
@@ -176,6 +176,7 @@ void gotoInset(BufferView * bv, vector<InsetCode> const & codes,
 
        tmpcur.clearSelection();
        bv->setCursor(tmpcur);
+       bv->showCursor();
 }
 
 
@@ -949,6 +950,7 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                                if (b == &buffer_) {
                                        // Set the cursor
                                        setCursor(makeDocIterator(par, 0));
+                                       showCursor();
                                } else {
                                        // Switch to other buffer view and resend cmd
                                        theLyXFunc().dispatch(FuncRequest(
@@ -1454,7 +1456,7 @@ void BufferView::gotoLabel(docstring const & label)
                it->getLabelList(buffer_, labels);
                if (find(labels.begin(), labels.end(), label) != labels.end()) {
                        setCursor(it);
-                       processUpdateFlags(Update::FitCursor);
+                       showCursor();
                        return;
                }
        }
index 61bc51dbc8d15f7f61895f5741500ceacee3bf25..27a8b9fc9f3f4a0d67572d2dcd2c1e804cb78afc 100644 (file)
@@ -1738,6 +1738,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                case LFUN_BOOKMARK_GOTO:
                        // go to bookmark, open unopened file and switch to buffer if necessary
                        gotoBookmark(convert<unsigned int>(to_utf8(cmd.argument())), true, true);
+                       updateFlags = Update::FitCursor;
                        break;
 
                case LFUN_BOOKMARK_CLEAR: