diff --git a/src/BufferView.cpp b/src/BufferView.cpp index ecb513f81e..c9b03bd607 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1742,7 +1742,7 @@ void BufferView::setCursorFromRow(int row) bool BufferView::setCursorFromInset(Inset const * inset) { // are we already there? - if (cursor().nextInset() == inset) + if (&cursor().inset() == inset || cursor().nextInset() == inset) return true; // Inset is not at cursor position. Find it in the document.