Skip to content

Commit 1bf05ab

Browse files
Merge pull request #598 from fujiwarat/rhbz#2402676
Fix not to send unnecessary IBusAttribute
2 parents b004492 + 5e7c380 commit 1bf05ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

engine_preedit.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ func (e *IBusBambooEngine) updatePreedit(processedStr string) {
110110
return
111111
}
112112

113-
if e.config.IBflags&config.IBnoUnderline != 0 {
114-
ibusText.AppendAttr(ibus.IBUS_ATTR_TYPE_NONE, ibus.IBUS_ATTR_UNDERLINE_SINGLE, 0, preeditLen)
115-
} else {
113+
if e.config.IBflags&config.IBnoUnderline == 0 {
116114
ibusText.AppendAttr(ibus.IBUS_ATTR_TYPE_UNDERLINE, ibus.IBUS_ATTR_UNDERLINE_SINGLE, 0, preeditLen)
117115
}
118116
e.UpdatePreeditTextWithMode(ibusText, preeditLen, true, ibus.IBUS_ENGINE_PREEDIT_COMMIT)

0 commit comments

Comments
 (0)