File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ void FcitxCskkContext::updateUI() {
341341 }
342342 auto &config = engine_->config ();
343343 auto &inputPanel = ic_->inputPanel ();
344+ inputPanel.reset ();
344345
345346 // Output
346347 if (auto output = skk_context_poll_output (context_)) {
@@ -449,6 +450,8 @@ FcitxCskkContext::formatPreedit(CskkStateInfoFfi *cskkStateInfoArray,
449450 std::string precomposition_marker = " ▽" ;
450451 std::string selection_marker = " ▼" ;
451452 Text mainContent = Text (" " ), supplementContent = Text (" " );
453+ mainContent.clear ();
454+ supplementContent.clear ();
452455 size_t mainCursorIdx = 0 ;
453456 for (uint32_t i = 0 ; i < stateLen; i++) {
454457 auto cskkStateInfo = cskkStateInfoArray[i];
@@ -527,7 +530,6 @@ FcitxCskkContext::formatPreedit(CskkStateInfoFfi *cskkStateInfoArray,
527530 mainContent.append (tmpContentString, TextFormatFlag::Underline);
528531
529532 if (compositionSelectionStateInfo.annotation ) {
530- supplementContent.clear ();
531533 supplementContent.append (compositionSelectionStateInfo.annotation ,
532534 TextFormatFlag::DontCommit);
533535 }
You can’t perform that action at this time.
0 commit comments