Commit df70b381 authored by Dominik Haumann's avatar Dominik Haumann

backport: fix get function for expand behaviour

parent a286c87f
......@@ -91,10 +91,10 @@ KTextEditor::MovingRange::InsertBehaviors TextRange::insertBehaviors () const
InsertBehaviors behaviors = DoNotExpand;
if (m_start.insertBehavior() == KTextEditor::MovingCursor::StayOnInsert)
behaviors = behaviors & ExpandLeft;
behaviors |= ExpandLeft;
if (m_end.insertBehavior() == KTextEditor::MovingCursor::MoveOnInsert)
behaviors = behaviors & ExpandRight;
behaviors |= ExpandRight;
return behaviors;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment