From 47688bf016502540ec6202cac208bfee41deaecc Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 1 Oct 2016 18:32:19 +0200 Subject: [PATCH] formatting --- AppKit/CPTextView/CPTextView.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 6d3623103..39c4d83d0 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -945,9 +945,10 @@ var kDelegateRespondsTo_textShouldBeginEditing rangeToHide = CPMakeRange(0, _selectionRange.location - lineBeginningIndex), dragPlaceholder; + // hide the left part of the first line of the selection that is not included [placeholderString addAttribute:CPForegroundColorAttributeName value:[CPColor colorWithRed:1 green:1 blue:1 alpha:0] - range:CPMakeRangeCopy(rangeToHide)]; + range:rangeToHide]; _movingSelection = CPMakeRange(_startTrackingLocation, 0);