Skip to content

Commit

Permalink
schema full name
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Nov 22, 2024
1 parent 01ba170 commit bae393e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rimestate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ std::string RimeState::subModeLabel() {
result = "A";
} else if (status.schema_name && status.schema_name[0] != '.') {
result = status.schema_name;
if (!result.empty() &&
utf8::lengthValidated(result) != utf8::INVALID_LENGTH) {
result = result.substr(
0, std::distance(result.begin(),
utf8::nextChar(result.begin())));
}
//if (!result.empty() &&
// utf8::lengthValidated(result) != utf8::INVALID_LENGTH) {
// result = result.substr(
// 0, std::distance(result.begin(),
// utf8::nextChar(result.begin())));
//}
}
});
return result;
Expand Down

0 comments on commit bae393e

Please sign in to comment.