Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Feb 2005 23:31:40 +0000 (23:31 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Feb 2005 23:31:40 +0000 (23:31 +0000)
        (continued) <rdar://problem/4004305> REGRESSION (Mail): Command-right-arrow on wrapped text goes to end of previous line

        This was supposed have been committed yesterday with the other part of the fix, but was not.

        * khtml/editing/visible_units.cpp:
        (khtml::endOfWord):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8595 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/visible_units.cpp

index 06fba26..d537487 100644 (file)
@@ -1,3 +1,14 @@
+2005-02-15  David Harrison  <harrison@apple.com>
+
+        Reviewed by Darin.
+
+        (continued) <rdar://problem/4004305> REGRESSION (Mail): Command-right-arrow on wrapped text goes to end of previous line
+
+        This was supposed have been committed yesterday with the other part of the fix, but was not.
+        
+        * khtml/editing/visible_units.cpp:
+        (khtml::endOfWord):
+
 2005-02-15  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index 5b74ee5..1e82afe 100644 (file)
@@ -222,6 +222,9 @@ VisiblePosition endOfWord(const VisiblePosition &c, EWordSide side)
 {
     VisiblePosition p = c;
     if (side == LeftWordIfOnBoundary) {
+        if (isStartOfParagraph(c))
+            return c;
+            
         p = c.previous();
         if (p.isNull())
             return c;