}
+bool BufferView::fixInlineCompletionPos()
+{
+ return d->inlineCompletionPos_.fixIfBroken();
+}
+
+
bool samePar(DocIterator const & a, DocIterator const & b)
{
if (a.empty() && b.empty())
size_t const & inlineCompletionUniqueChars() const;
/// return the position in the buffer of the inline completion postfix.
DocIterator const & inlineCompletionPos() const;
+ /// make sure inline completion position is OK
+ bool fixInlineCompletionPos();
/// set the inline completion postfix and its position in the buffer.
/// Updates the updateFlags in \c cur.
void setInlineCompletion(Cursor & cur, DocIterator const & pos,
old.beginUndoGroup();
old.fixIfBroken();
bool badcursor = notifyCursorLeavesOrEnters(old, bv->cursor());
- if (badcursor)
+ if (badcursor) {
bv->cursor().fixIfBroken();
+ bv->fixInlineCompletionPos();
+ }
old.endUndoGroup();
}