diff options
-rw-r--r-- | TranslitSwitcher/Src/Layoutproc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TranslitSwitcher/Src/Layoutproc.cpp b/TranslitSwitcher/Src/Layoutproc.cpp index 74b0f1d..ff77523 100644 --- a/TranslitSwitcher/Src/Layoutproc.cpp +++ b/TranslitSwitcher/Src/Layoutproc.cpp @@ -544,7 +544,7 @@ VOID SwitchLayout(BOOL lastword) start = dwStart-1;
while (start > 0 && start < (int)dwStart)
{
- if ((_istspace(sel[start]) && (end-start>2)) || isItSmiley(start))
+ if ((_istspace(sel[start]) && !_istspace(sel[start+1])) || isItSmiley(start))
break;
start--;
}
|