From 77c5000f1677a92c58318d41898f1ca71f2f0315 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 18 Jun 2016 11:47:47 +0200 Subject: [PATCH] selection fix --- 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 4825b1cd4..e443db11e 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -949,8 +949,7 @@ var kDelegateRespondsTo_textShouldBeginEditing if (index === CPNotFound) index = _scrollingDownward ? CPMaxRange(oldRange) : oldRange.location; - - if (fraction[0] > 0.5) + else if (fraction[0] > 0.5) index++; if (index > oldRange.location)