From 5819c3cda418dba41fc1824e051020258dfb854f Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 25 Oct 2010 17:00:41 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20in=20Move=20Line=20Down=20-?= =?UTF-8?q?=20fixes=20issue=20in=20873?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTextViewAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 5c938d21..262fa47c 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -439,7 +439,7 @@ NSRange currentSelection = [self selectedRange]; NSRange lineRange = [[self string] lineRangeForRange:currentSelection]; if(NSMaxRange(lineRange) < [[self string] length]) { - NSRange afterLineRange = [[self string] lineRangeForRange:NSMakeRange(NSMaxRange(lineRange)+1, 0)]; + NSRange afterLineRange = [[self string] lineRangeForRange:NSMakeRange(NSMaxRange(lineRange), 0)]; NSRange insertPoint = NSMakeRange(lineRange.location + afterLineRange.length, 0); NSString *currentLine = [[self string] substringWithRange:lineRange]; [self setSelectedRange:lineRange]; -- cgit v1.2.3