Skip to content

Commit 0a8a58f

Browse files
authored
fix(composition): skip phony segments in GetScriptText (#1051)
1 parent 0ce1114 commit 0a8a58f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rime/composition.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ string Composition::GetScriptText(bool keep_selection) const {
132132
result += cand->text();
133133
else if (cand && !cand->preedit().empty())
134134
result += boost::erase_first_copy(cand->preedit(), "\t");
135-
else
135+
else if (!seg.HasTag("phony"))
136136
result += input_.substr(start, end - start);
137137
}
138138
if (input_.length() > end) {

0 commit comments

Comments
 (0)