From 268e5cef3bd3ccd8f6957107facf374f3145977c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 May 2019 13:37:57 +0530 Subject: [PATCH] Remove useless else --- glfw/cocoa_window.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index eabd6d315..61913c8c0 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -861,7 +861,8 @@ is_ascii_control_char(char x) { _glfwInputKeyboard(window, key, scancode, GLFW_PRESS, mods, [[markedText string] UTF8String], 1); // update pre-edit text return; - } else if (in_compose_sequence) { + } + if (in_compose_sequence) { debug_key(@"Clearing pre-edit text at end of compose sequence\n"); _glfwInputKeyboard(window, key, scancode, GLFW_PRESS, mods, NULL, 1); // clear pre-edit text