From c628ea34b71ef957def1bc1931c0957605ef87d8 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 11 Jun 2016 17:11:55 +0200 Subject: [PATCH] formatting --- AppKit/CPTextView/CPTextView.j | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 59897aba0..f1936bcb3 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -1793,17 +1793,17 @@ var kDelegateRespondsTo_textShouldBeginEditing return characterSet.exec(_characterTripletFromStringAtIndex([_textStorage string], index)) !== null; } -+ (JSRegEx)_wordBoundaryRegex ++ (JSObject)_wordBoundaryRegex { return /^.[^-\.,+#'"!§$%&/\(<\[\]>\)=?`´*\s{}\|¶]/m; } -+ (JSRegEx)_paragraphBoundaryRegex ++ (JSObject)_paragraphBoundaryRegex { return /^.[\n\r]/m; } -+ (JSRegEx)_whitespaceRegex ++ (JSObject)_whitespaceRegex { return /^.[ \t]+/m; } @@ -1873,6 +1873,7 @@ var kDelegateRespondsTo_textShouldBeginEditing return proposedRange; } + // triple click right in last line of a paragraph-> select this paragraph completely if (loc > 0 && _isNewlineCharacter([string characterAtIndex:loc])) loc--;