Skip to content

Commit

Permalink
不一致シーケンスだけが対象になる後置型変換が動かないバグ修正
Browse files Browse the repository at this point in the history
現象:issue #14の条件で、行頭で ki<Space> と打つと待機中の「き」が消えるだけ。
期待する動作は、「き」を対象に後置型変換が行われること。
  • Loading branch information
deton committed May 5, 2017
1 parent 3e2aece commit e526a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imcrvtip/KeyHandlerPostConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ HRESULT CTextService::_ReplacePrecedingText(TfEditCookie ec, ITfContext *pContex
{
size_t delete_count = delstr0.size();
size_t aborted_count = abortedRomanForPostConv.size();
if(aborted_count > delete_count)
if(aborted_count >= delete_count)
{
std::wstring s(abortedRomanForPostConv);
s.erase(s.size() - delete_count);
Expand Down

0 comments on commit e526a9d

Please sign in to comment.