Skip to content

Commit

Permalink
Hide Caret in Schema Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed May 10, 2024
1 parent b05da58 commit 101f977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rime/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ string Context::GetScriptText() const {
static const string kCaretSymbol("\xe2\x80\xb8"); // U+2038 ‸ CARET

string Context::GetSoftCursor() const {
return get_option("soft_cursor") ? kCaretSymbol : string();
return get_option("soft_cursor") && !composition_.back().HasTag("switcher")
? kCaretSymbol
: string();
}

Preedit Context::GetPreedit() const {
Expand Down
1 change: 1 addition & 0 deletions src/rime/switcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ void Switcher::RefreshMenu() {
// context_->set_input(" ");
Segment seg(0, 0); // empty range
seg.prompt = caption_;
seg.tags.insert("switcher");
comp.AddSegment(seg);
}
auto menu = New<Menu>();
Expand Down

0 comments on commit 101f977

Please sign in to comment.