feat: arif_rime: handle candidate selection

Tell Rime which candidate was selected, so that the engine can
make use of this information to improve user experience.
This commit is contained in:
CismonX 2023-11-28 18:20:48 +08:00
parent c115ce8b0f
commit 460e563d85
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
1 changed files with 1 additions and 2 deletions

View File

@ -194,8 +194,7 @@ arif_rime_query (
rime_api->free_commit(&rimecommit);
}
} else if (candidates_ptr == NULL) {
// TODO: handle candidate selection so that we can preserve a
// Rime session when possible.
rime_api->select_candidate(ctx->session, offset);
return 0;
} else {
if (!rime_api->find_session(ctx->session)) {