Fix navigation and bookmarks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22255 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-22 10:19:26 +00:00
parent 66627576fb
commit 2b9153b8bc
2 changed files with 4 additions and 1 deletions

View File

@ -176,6 +176,7 @@ void gotoInset(BufferView * bv, vector<InsetCode> const & codes,
tmpcur.clearSelection(); tmpcur.clearSelection();
bv->setCursor(tmpcur); bv->setCursor(tmpcur);
bv->showCursor();
} }
@ -949,6 +950,7 @@ bool BufferView::dispatch(FuncRequest const & cmd)
if (b == &buffer_) { if (b == &buffer_) {
// Set the cursor // Set the cursor
setCursor(makeDocIterator(par, 0)); setCursor(makeDocIterator(par, 0));
showCursor();
} else { } else {
// Switch to other buffer view and resend cmd // Switch to other buffer view and resend cmd
theLyXFunc().dispatch(FuncRequest( theLyXFunc().dispatch(FuncRequest(
@ -1454,7 +1456,7 @@ void BufferView::gotoLabel(docstring const & label)
it->getLabelList(buffer_, labels); it->getLabelList(buffer_, labels);
if (find(labels.begin(), labels.end(), label) != labels.end()) { if (find(labels.begin(), labels.end(), label) != labels.end()) {
setCursor(it); setCursor(it);
processUpdateFlags(Update::FitCursor); showCursor();
return; return;
} }
} }

View File

@ -1738,6 +1738,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
case LFUN_BOOKMARK_GOTO: case LFUN_BOOKMARK_GOTO:
// go to bookmark, open unopened file and switch to buffer if necessary // go to bookmark, open unopened file and switch to buffer if necessary
gotoBookmark(convert<unsigned int>(to_utf8(cmd.argument())), true, true); gotoBookmark(convert<unsigned int>(to_utf8(cmd.argument())), true, true);
updateFlags = Update::FitCursor;
break; break;
case LFUN_BOOKMARK_CLEAR: case LFUN_BOOKMARK_CLEAR: