diff --git a/tools/rime_console.cc b/tools/rime_console.cc index 9428d6d2da..07a8a5205f 100644 --- a/tools/rime_console.cc +++ b/tools/rime_console.cc @@ -81,7 +81,7 @@ class RimeConsole { for (const KeyEvent &key : keys) { engine_->ProcessKey(key); } - Context *ctx = engine_->context(); + Context *ctx = engine_->active_context(); if (interactive_) { PrintComposition(ctx); }