Skip to content

Commit

Permalink
remove e-lead buffered input
Browse files Browse the repository at this point in the history
  • Loading branch information
dsl committed May 16, 2023
1 parent 697cbaa commit d50cf0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/rime/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ bool Context::Commit() {
commit_notifier_(this);
// start over
Clear();
if (get_option("is_buffered"))
set_option("is_buffered", false);
//if (get_option("is_buffered"))
// set_option("is_buffered", false);
return true;
}

Expand Down
10 changes: 5 additions & 5 deletions src/rime/gear/speller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ namespace rime {
&& boost::regex_match(schema, boost::regex("^sbpy$")) && belongs_to(c1, initials_);
bool is_editable = is_popped && len >= 4 && !is_initial;

if (ctx->input().length() == 1 && ctx->input()[0] == 'e' && is_sbxlm
&& string("qwrtsdfgzxcvbyphjklnm").find(ch) != string::npos) {
ctx->set_option("is_buffered", true);
ctx->Clear();
}
//if (ctx->input().length() == 1 && ctx->input()[0] == 'e' && is_sbxlm
// && string("qwrtsdfgzxcvbyphjklnm").find(ch) != string::npos) {
// ctx->set_option("is_buffered", true);
// ctx->Clear();
//}

if (!is_initial &&
expecting_an_initial(ctx, alphabet_, finals_)) {
Expand Down

0 comments on commit d50cf0c

Please sign in to comment.