diff --git a/RimeWithWeasel/RimeWithWeasel.cpp b/RimeWithWeasel/RimeWithWeasel.cpp index 184155e23..8f6597148 100644 --- a/RimeWithWeasel/RimeWithWeasel.cpp +++ b/RimeWithWeasel/RimeWithWeasel.cpp @@ -463,7 +463,7 @@ bool RimeWithWeaselHandler::_Respond(UINT session_id, EatLine eat) case weasel::PREVIEW: if (ctx.menu.num_candidates > 0) { - std::string first = ctx.menu.candidates[ctx.menu.highlighted_candidate_index].text; + std::string first = ctx.commit_text_preview; messages.push_back(std::string("ctx.preedit=") + first + '\n'); messages.push_back(std::string("ctx.preedit.cursor=") + std::to_string(utf8towcslen(first.c_str(), 0)) + ',' +