Skip to content

Commit

Permalink
fix: missing brackets in if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Feb 8, 2024
1 parent 5c1502e commit 0de4da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rime/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ void Context::Clear() {

bool Context::Select(size_t index) {
bool result = Peek(index);
if (result)
if (result) {
composition_.back().status = Segment::kSelected;
select_notifier_(this);
}
return result;
}

Expand Down

0 comments on commit 0de4da0

Please sign in to comment.