From 4c6f5744d82ad08cb6edac1996e900cf63d86da8 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 24 May 2016 09:07:03 +0200 Subject: [PATCH] fixed: setFont semantics are wrong --- AppKit/CPTextView/CPTextView.j | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 30f7d0120..0fd519ff6 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -1479,9 +1479,8 @@ var kDelegateRespondsTo_textShouldBeginEditing [_textStorage setFont:_font]; } - [_textStorage addAttribute:CPFontAttributeName value:font range:CPMakeRangeCopy(range)]; + [_textStorage addAttribute:CPFontAttributeName value:font range:range]; [_layoutManager _validateLayoutAndGlyphs]; - [self scrollRangeToVisible:CPMakeRange(CPMaxRange(range), 0)]; } - (void)changeFont:(id)sender