]> git.lyx.org Git - lyx.git/commitdiff
Write messages to minibuffer when using bookmarks.
authorDekel Tsur <dekelts@tau.ac.il>
Mon, 29 Jan 2001 10:24:16 +0000 (10:24 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Mon, 29 Jan 2001 10:24:16 +0000 (10:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1417 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index a257021565f8c310879310f8cbb08a31648ff294..139665ed9090ee69382995b011e0d96e9bfe9a26 100644 (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));
 }
 
 
index 6ff00325d12e9e17d4303d53cd29c1d63061ab34..331625ac22203532f9d173eed93dcbf1e452e3c7 100644 (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.