aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-25 17:00:41 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-25 17:00:41 +0000
commit5819c3cda418dba41fc1824e051020258dfb854f (patch)
treec7c1a40f0df3a1591ddae2ca18a5c7969573b0a5 /Source/SPTextViewAdditions.m
parent7d9fbcaaf80b91d7eca7eacb78dd4ef0c53ef7a8 (diff)
downloadsequelpro-5819c3cda418dba41fc1824e051020258dfb854f.tar.gz
sequelpro-5819c3cda418dba41fc1824e051020258dfb854f.tar.bz2
sequelpro-5819c3cda418dba41fc1824e051020258dfb854f.zip
• fixed bug in Move Line Down
- fixes issue in 873
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 1 insertions, 1 deletions
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];