From b7d0db69de492d1b60e396d36593eec8874bbfb3 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Sat, 26 Dec 2020 17:25:24 +0800 Subject: [PATCH] enlarge TK_IM_MAX_CANDIDATE_CHARS --- src/base/input_engine.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/base/input_engine.h b/src/base/input_engine.h index 625f16a81..1ab46d7e0 100644 --- a/src/base/input_engine.h +++ b/src/base/input_engine.h @@ -33,8 +33,13 @@ typedef ret_t (*input_engine_input_t)(input_engine_t* engine, int key); typedef ret_t (*input_engine_set_lang_t)(input_engine_t* engine, const char* lang); typedef const char* (*input_engine_get_lang_t)(input_engine_t* engine); +#ifndef TK_IM_MAX_INPUT_CHARS #define TK_IM_MAX_INPUT_CHARS 15 -#define TK_IM_MAX_CANDIDATE_CHARS 255 +#endif/*TK_IM_MAX_INPUT_CHARS*/ + +#ifndef TK_IM_MAX_CANDIDATE_CHARS +#define TK_IM_MAX_CANDIDATE_CHARS 1023 +#endif/*TK_IM_MAX_CANDIDATE_CHARS*/ /** * @class input_engine_t