From eaa90d9d628cbb64274a160dd9d4ad5a488a5425 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 18 Apr 2020 13:10:28 -0400 Subject: [PATCH] Mark the textView_ as needing display in -setMarkedLine:. --- Source/BSSourceView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/BSSourceView.mm b/Source/BSSourceView.mm index db4b006..42f7da9 100644 --- a/Source/BSSourceView.mm +++ b/Source/BSSourceView.mm @@ -59,6 +59,7 @@ - (void)setMarkedLine:(NSUInteger)markedLine { markedLine_ = markedLine; [ruler_ setNeedsDisplay:YES]; + [textView_ setNeedsDisplay:YES]; } /** @@ -119,7 +120,7 @@ for (NSUInteger i = 0; i < line; i++) { rangeIndex = NSMaxRange([[textView_ string] lineRangeForRange:NSMakeRange(rangeIndex, 0)]); } - + // now get the true start/end markers for it NSUInteger lineStart, lineEnd; [[textView_ string] getLineStart:&lineStart -- 2.43.5