From 29bb8ef4cffa13a3e2a765a505ab1004687f69e1 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Mon, 21 Oct 2024 07:53:03 +0900 Subject: [PATCH] fix: disable snapshot feature --- capi/data/mini.dat | Bin 91023 -> 91040 bytes src/editor/mod.rs | 8 ++++---- tests/test-bopomofo.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/capi/data/mini.dat b/capi/data/mini.dat index 510d5aec1e7d3523cb6baffeb75d30b345b8de36..4470aa019f7f0a0218e95e97333ea1efca2d1508 100644 GIT binary patch delta 57 zcmeA_&br_@tAIf>WAbbs7H1FFa3)3ugVKot-r`~gdX{V{#V{i?fGoI1?j-LCQn{Z#Gr~Jxe`<#-go7jC#oc>%R)$ diff --git a/src/editor/mod.rs b/src/editor/mod.rs index a25a509c..be967f1a 100644 --- a/src/editor/mod.rs +++ b/src/editor/mod.rs @@ -524,10 +524,10 @@ impl SharedState { self.conversion().into_iter() } fn snapshot(&mut self) { - for interval in self.intervals() { - self.com.select(interval); - } - self.nth_conversion = 0; + // for interval in self.intervals() { + // self.com.select(interval); + // } + // self.nth_conversion = 0; } fn cursor(&self) -> usize { self.com.cursor() diff --git a/tests/test-bopomofo.c b/tests/test-bopomofo.c index ef36e6e8..b6968ee7 100644 --- a/tests/test-bopomofo.c +++ b/tests/test-bopomofo.c @@ -583,7 +583,7 @@ void test_Del_word() chewing_set_maxChiSymbolLen(ctx, 16); type_keystroke_by_string(ctx, "hk4u g4"); - ok_commit_buffer(ctx, "冊市" ); + ok_commit_buffer(ctx, "測試" ); chewing_delete(ctx); } @@ -654,7 +654,7 @@ void test_Backspace_word() chewing_set_maxChiSymbolLen(ctx, 16); type_keystroke_by_string(ctx, "hk4u g4"); - ok_commit_buffer(ctx, "冊市" ); + ok_commit_buffer(ctx, "測試" ); chewing_delete(ctx); }