fix(frontends): restart preedit around commits
This commit is contained in:
@@ -345,6 +345,8 @@ kpress(GtkIMContext *ctx, GdkEventKey *ev)
|
||||
srvclose(im);
|
||||
return simplefilter(ctx, ev, 0);
|
||||
}
|
||||
if(im->usepreedit && commit[0] != '\0' && im->prelen > 0)
|
||||
setpreedit(im, "", 0);
|
||||
if(commit[0] != '\0')
|
||||
g_signal_emit_by_name(ctx, "commit", commit);
|
||||
if(im->usepreedit)
|
||||
|
||||
Reference in New Issue
Block a user