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:
parent
c115ce8b0f
commit
460e563d85
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue