Skip to content
Commit 80ab4568 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix inline notes with dynamic wrap disabled

When dynamic wrap is disabled we need to take care of things in a
completely different way.

Remember that KTextEditor has no RTL UI. It is _always_ LeftToRight.
However, we do support RTL text. When dynamic wrap is off all our
text is on the left side of the view regardless of what QTextLayout
says.

While fixing this, another thing that got fixed was cursorToCoordinates,
which was broken for RTL+NoWrap case. In that case, we the offset of
each character is opposite i.e., the first letter is at the farthest
position. See the comments in the code for more details. This is
probably because Qt thinks our text is on the right side of the UI...
parent 2f01945e
Pipeline #475164 failed with stage
in 9 minutes and 30 seconds
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