From 31c2447fb82407a51492d25fcf295450cd24a8b0 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 5 Mar 2022 10:25:49 +0800 Subject: [PATCH] Fix not scrolling to the bottom when an interrupt is sent Replicates the same side effects of keyboard key event. --- kitty/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/window.py b/kitty/window.py index bb5b991f3..5540530f5 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1217,6 +1217,7 @@ class Window: if text: set_clipboard_string(text) else: + self.scroll_end() self.write_to_child(self.encoded_key(KeyEvent(key=ord('c'), mods=GLFW_MOD_CONTROL))) @ac('cp', 'Copy the selected text from the active window to the clipboard and clear selection, if no selection, send SIGINT (aka :kbd:`ctrl+c`)')