mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 12:21:55 +00:00
Dont leak a reference to input_source_at_last_key_event
This commit is contained in:
parent
0ae928f409
commit
21bc5bf8c0
1 changed files with 2 additions and 0 deletions
|
|
@ -1103,6 +1103,8 @@ is_ascii_control_char(char x) {
|
|||
GLFWkeyevent dummy = {.action = GLFW_RELEASE, .ime_state = GLFW_IME_PREEDIT_CHANGED};
|
||||
window->ns.deadKeyState = 0;
|
||||
_glfwInputKeyboard(window, &dummy); // clear pre-edit text
|
||||
[input_source_at_last_key_event release];
|
||||
input_source_at_last_key_event = nil;
|
||||
}
|
||||
input_source_at_last_key_event = [inpctx.selectedKeyboardInputSource retain];
|
||||
[self unmarkText];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue