diff --git a/src/rime/schema.cc b/src/rime/schema.cc index 559cb7a8a..3026dda95 100644 --- a/src/rime/schema.cc +++ b/src/rime/schema.cc @@ -30,6 +30,9 @@ void Schema::FetchUsefulConfigItems() { schema_name_ = schema_id_; } config_->GetInt("menu/page_size", &page_size_); + if (page_size_ < 1) { + page_size_ = 5; + } config_->GetString("menu/alternative_select_keys", &select_keys_); config_->GetBool("menu/page_down_cycle", &page_down_cycle_); }