mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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:
+2
-4
@@ -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