From 55b487f46380878aceb83e991dcdfc6a050dde08 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Tue, 17 Apr 2018 22:31:46 +0800 Subject: [PATCH] chore(engine.cc): Google code style; more informative name --- src/rime/engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rime/engine.cc b/src/rime/engine.cc index 33e1a183e0..5d839f4ed2 100644 --- a/src/rime/engine.cc +++ b/src/rime/engine.cc @@ -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());