diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-10-25 17:00:41 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-10-25 17:00:41 +0000 |
commit | 5819c3cda418dba41fc1824e051020258dfb854f (patch) | |
tree | c7c1a40f0df3a1591ddae2ca18a5c7969573b0a5 /Source/SPTextViewAdditions.m | |
parent | 7d9fbcaaf80b91d7eca7eacb78dd4ef0c53ef7a8 (diff) | |
download | sequelpro-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.m | 2 |
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]; |