Abdelrazak Younes wrote: > Richard Heck wrote: >> Index: Paragraph.h >> =================================================================== >> --- Paragraph.h (revision 18413) >> +++ Paragraph.h (working copy) >> @@ -359,9 +359,11 @@ >> /// >> bool hfillExpansion(Row const & row, pos_type pos) const; >> >> - /// Check if we are in a Biblio environment. >> - /// \retval true if the cursor needs to be moved right. >> - bool checkBiblio(bool track_changes); >> + /// Check if we are in a Biblio environment and insert or >> + /// delete InsetBibitems as necessary. >> + /// \retval int 1 to move cursor right; -1 to move it left; >> + /// 0 to leave it where it is. >> + int checkBiblio(bool track_changes); > In general enums are more explicative: > > enum CursorMove { > NoMove, > MoveRight, > MoveLeft > } It occurred to me I actually should do something slightly different, namely, return the position where the inset was deleted (though it'll be minus-position) and then check if the cursor was beyond that. If not, it doesn't need to be moved.
Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto