X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.cpp;h=a814991e59dcbdfdb709931f881c313f1dad3672;hb=b08a653f3549e08fffc5318c87da305651ecc197;hp=16b6df7c61b2a3bca93cce9fb73dc85a256f3eba;hpb=99e636ae7b83dacb5acc96ae3b60a96c28339c0e;p=lyx.git diff --git a/src/Session.cpp b/src/Session.cpp index 16b6df7c61..a814991e59 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -353,6 +353,15 @@ BookmarksSection::bookmarksInPar(FileName const & fn, int const par_id) const } +void BookmarksSection::adjustPosAfterPos(FileName const & fn, + int const par_id, pos_type pos, int offset) +{ + for (Bookmark & bkm : bookmarks) + if (bkm.filename == fn && bkm.top_id == par_id && bkm.top_pos > pos) + bkm.top_pos += offset; +} + + LastCommandsSection::LastCommandsSection(unsigned int num) : default_num_last_commands(30), absolute_max_last_commands(100)