From 447a1056b4f97b102db9666a131ce85001c0676c Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 11 Mar 2021 16:16:11 +0100 Subject: [PATCH] Fix bookmarks-goto inside insets. A stupid oversight, as far as I can see. --- src/BufferView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 730f0e50da..4289e313bf 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -913,7 +913,7 @@ bool BufferView::moveToPosition(pit_type bottom_pit, pos_type bottom_pos, // restoration is inaccurate. If a bookmark was within an inset, // it will be restored to the left of the outmost inset that contains // the bookmark. - if (bottom_pit < int(buffer_.paragraphs().size())) { + if (!success && bottom_pit < int(buffer_.paragraphs().size())) { dit = doc_iterator_begin(&buffer_); dit.pit() = bottom_pit;