Skip to content

Commit

Permalink
🐛 Fix bug when input is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Apr 19, 2024
1 parent 026a756 commit 5d1f1ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class Rime {
}
let context = binding.getContext(this.sessionId);
let result = context;
if (input === '') resolve(result);
while (!context.menu.is_last_page) {
binding.processKey(this.sessionId, '='.charCodeAt(0), 0);
context = binding.getContext(this.sessionId);
Expand Down

0 comments on commit 5d1f1ee

Please sign in to comment.