forked from joejulian/gio
app: remove redundant if check
EditorStateChanged is only called when the old and new states differ. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -363,10 +363,8 @@ func (w *window) SetCursor(name pointer.CursorName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *window) EditorStateChanged(old, new editorState) {
|
func (w *window) EditorStateChanged(old, new editorState) {
|
||||||
if old != new {
|
|
||||||
C.discardMarkedText(w.view)
|
C.discardMarkedText(w.view)
|
||||||
w.w.SetComposingRegion(key.Range{Start: -1, End: -1})
|
w.w.SetComposingRegion(key.Range{Start: -1, End: -1})
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *window) ShowTextInput(show bool) {}
|
func (w *window) ShowTextInput(show bool) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user