Skip to content

Commit

Permalink
chore(engine.cc): Google code style; more informative name
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Apr 17, 2018
1 parent 030c389 commit 55b487f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rime/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ void ConcreteEngine::OnSelect(Context* ctx) {
ctx->composition().Forward();
}
else {
bool updateCaret = (seg.end >= ctx->caret_pos());
bool reached_caret_pos = (seg.end >= ctx->caret_pos());
ctx->composition().Forward();
if (updateCaret) {
if (reached_caret_pos) {
// finished converting current segment
// move caret to the end of input
ctx->set_caret_pos(ctx->input().length());
Expand Down

0 comments on commit 55b487f

Please sign in to comment.