From 8a8d39240ed1486c2fb4669f5f5340936c0ac391 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 7 Apr 2009 11:13:53 +0000 Subject: =?UTF-8?q?=E2=80=A2=20FIXED=20bug=20in=20doTranspose:=20if=20[tex?= =?UTF-8?q?tView=20string]=20=3D=3D=3D=20"abc|d"?= 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(-) 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 -- cgit v1.2.3