Write messages to minibuffer when using bookmarks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-01-29 10:24:16 +00:00
parent c5bee0d0d7
commit af5a15a94b
2 changed files with 9 additions and 1 deletions

View File

@ -1181,6 +1181,8 @@ void BufferView::Pimpl::savePosition(unsigned int i)
saved_positions[i] = Position(buffer_->fileName(),
bv_->text->cursor.par()->id(),
bv_->text->cursor.pos());
if (i > 0)
owner_->getMiniBuffer()->Set(_("Saved bookmark ") + tostr(i));
}
@ -1189,7 +1191,6 @@ void BufferView::Pimpl::restorePosition(unsigned int i)
if (i >= saved_positions_num)
return;
string fname = saved_positions[i].filename;
beforeChange();
@ -1208,6 +1209,8 @@ void BufferView::Pimpl::restorePosition(unsigned int i)
bv_->text->SetCursor(bv_, par,
min(par->Last(), saved_positions[i].par_pos));
update(BufferView::SELECT|BufferView::FITCUR);
if (i > 0)
owner_->getMiniBuffer()->Set(_("Moved to bookmark ") + tostr(i));
}

View File

@ -1,3 +1,8 @@
2001-01-29 Dekel Tsur <dekelts@tau.ac.il>
* BufferView_pimpl.C (savePosition, restorePosition): Write
messages to minibuffer.
2001-01-28 José Matos <jamatos@fep.up.pt>
* buffer.C (makeDocBookFile): adds support for document language.