Commit ca11abda authored by Hiroshi Sumita's avatar Hiroshi Sumita
Browse files

Fixes preedit text handlings.

BUG=All characters should be set on conversionText when cursor position is not at the end.
TEST=Manually tested with client codes.

Review URL: https://codereview.appspot.com/5869044
parent 228c9464
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -134,6 +134,9 @@ PinyinContext::updatePreeditText ()
                    }
                    m_buffer << '|' << textAfterPinyin (candidate_end);
                    m_preedit_text.rest_text = m_buffer;

                    edit_end_word = m_buffer.utf8Length ();
                    edit_end_byte = m_buffer.size ();
                }
            }
        }