Skip to content

Commit a4c8688

Browse files
committed
hide candidate in librime
1 parent 65dad2c commit a4c8688

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rime_api_impl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ RIME_DEPRECATED Bool RimeGetContext(RimeSessionId session_id,
249249
context->menu.highlighted_candidate_index = selected_index % page_size;
250250
int i = 0;
251251
context->menu.num_candidates = page->candidates.size();
252+
if (ctx->get_option("_hide_candidate")) {
253+
context->menu.num_candidates = 0;
254+
}
252255
context->menu.candidates = new RimeCandidate[page->candidates.size()];
253256
for (const an<Candidate>& cand : page->candidates) {
254257
RimeCandidate* dest = &context->menu.candidates[i++];

0 commit comments

Comments
 (0)