Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2017-08-03 16:04:46 +0300
committerMike Krüger <mkrueger@xamarin.com>2017-08-03 16:04:46 +0300
commitab23f7b27b9d35ed35ddb9f8c33f93035c32f983 (patch)
treec6108b8f01dea8856bb1b76295e40add7f75a4e5 /main
parent12b8c473e811339452e0683160116c859f96b516 (diff)
[TextEditor] Fix selection drawing bug.
On lines with fold markers the selection drawing was wrong - there was a gap after the last fold marker because that code measured the whole last line instead of just the remaining part to be drawn.
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MonoDevelop.SourceEditor2/Mono.TextEditor/Gui/TextViewMargin.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/Mono.TextEditor/Gui/TextViewMargin.cs b/main/src/addins/MonoDevelop.SourceEditor2/Mono.TextEditor/Gui/TextViewMargin.cs
index 7d74e4ae60..1a6c1dc1ff 100644
--- a/main/src/addins/MonoDevelop.SourceEditor2/Mono.TextEditor/Gui/TextViewMargin.cs
+++ b/main/src/addins/MonoDevelop.SourceEditor2/Mono.TextEditor/Gui/TextViewMargin.cs
@@ -3097,7 +3097,9 @@ namespace Mono.TextEditor
if (!isSelectionDrawn && BackgroundRenderer == null) {
if (isEolSelected) {
// prevent "gaps" in the selection drawing ('fuzzy' lines problem)
- wrapper = GetLayout (line);
+ // Need to get the layout for the remaning line which is drawn after the last fold marker
+ wrapper = CreateLinePartLayout (line, logicalRulerColumn, offset, line.Offset + line.Length - offset, 0, 0);
+
int remainingLineWidth, ph;
wrapper.GetPixelSize (out remainingLineWidth, out ph);