Skip to content

Commit

Permalink
Disable complement with empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancorvussolis committed Nov 2, 2016
1 parent cf2c62b commit 177b57d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions imcrvtip/KeyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,16 +523,17 @@ void CTextService::_ResetStatus()
purgedicmode = FALSE;
hintmode = FALSE;

roman.clear();
kana.clear();
okuriidx = 0;

searchkey.clear();
searchkeyorg.clear();

candidates.clear();
candidates.shrink_to_fit();
candidx = 0;

roman.clear();
kana.clear();
okuriidx = 0;
candorgcnt = 0;

cursoridx = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion imcrvtip/KeyHandlerConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void CTextService::_NextComp()
{
if(!complement)
{
if(okuriidx != 0)
if(kana.empty() || okuriidx != 0)
{
return;
}
Expand Down

0 comments on commit 177b57d

Please sign in to comment.