Skip to content

Commit

Permalink
Merge pull request #647 from chewing/disable-snapshot
Browse files Browse the repository at this point in the history
fix: disable snapshot feature
  • Loading branch information
kanru authored Oct 20, 2024
2 parents 0f79937 + 29bb8ef commit 3593a63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified capi/data/mini.dat
Binary file not shown.
8 changes: 4 additions & 4 deletions src/editor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tests/test-bopomofo.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ void test_Del_word()
chewing_set_maxChiSymbolLen(ctx, 16);

type_keystroke_by_string(ctx, "hk4u g4<L><L><DC><E>");
ok_commit_buffer(ctx, "冊市" );
ok_commit_buffer(ctx, "測試" );

chewing_delete(ctx);
}
Expand Down Expand Up @@ -654,7 +654,7 @@ void test_Backspace_word()
chewing_set_maxChiSymbolLen(ctx, 16);

type_keystroke_by_string(ctx, "hk4u g4<L><B><E>");
ok_commit_buffer(ctx, "冊市" );
ok_commit_buffer(ctx, "測試" );

chewing_delete(ctx);
}
Expand Down

0 comments on commit 3593a63

Please sign in to comment.