From 927d6d2fc681d4cc33d5cfa4bfd5429a57847613 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 5 Apr 2018 21:36:32 +0200 Subject: [PATCH] fixed: backspace did not trigger scrolling properly --- AppKit/CPTextView/CPTextView.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index fae2b59b2..aef8e5679 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -1614,6 +1614,7 @@ Sets the selection to a range of characters in response to user action. [self didChangeText]; [_layoutManager _validateLayoutAndGlyphs]; [self sizeToFit]; + [self scrollRangeToVisible:CPMakeRange(changedRange.location, 0)] _stickyXLocation = _caret._rect.origin.x; }