aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-07 11:13:53 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-07 11:13:53 +0000
commit8a8d39240ed1486c2fb4669f5f5340936c0ac391 (patch)
treec3723a80827a2fa78ed40d53b9bc3e825652d28a
parent6060ba57f5897bffdd35dbca438e6682b2960f75 (diff)
downloadsequelpro-8a8d39240ed1486c2fb4669f5f5340936c0ac391.tar.gz
sequelpro-8a8d39240ed1486c2fb4669f5f5340936c0ac391.tar.bz2
sequelpro-8a8d39240ed1486c2fb4669f5f5340936c0ac391.zip
• FIXED bug in doTranspose: if [textView string] === "abc|d"
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index c7491215..885e51df 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -240,7 +240,7 @@
if(!curRange.length)
@try // caret is in between two chars
{
- if(curRange.location+1 >= [[self string] length])
+ if(curRange.location+1 > [[self string] length])
{
// caret is at the end of a text field
// transpose last two characters