Commit 5ca0280c authored by Cody Russell's avatar Cody Russell

Fix a crasher that was introduced by 9ca80216

due to preedit_str being initialized as an empty string rather than NULL.
parent 9ca80216
......@@ -230,7 +230,7 @@ discard_preedit (GtkIMContext *context)
NSInputManager *currentInputManager = [NSInputManager currentInputManager];
[currentInputManager markedTextAbandoned:nsview];
if (qc->preedit_str)
if (qc->preedit_str && strlen (qc->preedit_str) > 0)
{
g_signal_emit_by_name (context, "commit", qc->preedit_str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment