richedit: Fixed the forward word movement bug.
Using Ctrl-RightArrow to move to the start of the next word did not
previously work when at the start of a word. This means that
Ctrl-RightArrow would not work twice in a row since it should move to
the start of the next word.
diff --git a/dlls/riched20/string.c b/dlls/riched20/string.c
index 2ec0092..84efdbe 100644
--- a/dlls/riched20/string.c
+++ b/dlls/riched20/string.c
@@ -317,18 +317,10 @@
return start;
case WB_RIGHT:
case WB_MOVEWORDRIGHT:
- if (start && ME_IsWSpace(s[start - 1]))
- {
- while (start < len && ME_IsWSpace(s[start]))
- start++;
- }
- else
- {
- while (start < len && !ME_IsWSpace(s[start]))
- start++;
- while (start < len && ME_IsWSpace(s[start]))
- start++;
- }
+ while (start < len && !ME_IsWSpace(s[start]))
+ start++;
+ while (start < len && ME_IsWSpace(s[start]))
+ start++;
return start;
}
return 0;