From 460e563d85169078fb8a2d1d8ca857cb5b1a31c3 Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 28 Nov 2023 18:20:48 +0800 Subject: [PATCH] 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. --- examples/arif_rime.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/arif_rime.c b/examples/arif_rime.c index 343c721..7a60963 100644 --- a/examples/arif_rime.c +++ b/examples/arif_rime.c @@ -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)) {