diamondburned / gtkcord3

A Gtk3 Discord client in Golang
GNU General Public License v3.0
628 stars 28 forks source link

Emoji Completion Freezing #79

Open ghost opened 4 years ago

ghost commented 4 years ago

There's a small bug which prevents the emoji completion popup from closing up. It occurs when there's no results and you erase your message.

One way to close it up is to type anything just to pop another completion and then erase your message.

Peek 2020-07-03 16-27

I was able to fix it by calling *State.ClearCompletion() on the line down below. It's a hacky way I found to correct this behavior.

https://github.com/diamondburned/gtkcord3/blob/45cce77b76b35dfbf3dce4198e9b2690ef7058b1/gtkcord/components/message/completer/completer.go#L228