From 9cd146fe3eda4d5dc9ff11bb484e58a9eb88c55b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Sep 2017 16:31:29 +0530 Subject: [PATCH] Remove the buf_toggled callback --- kitty/screen.c | 2 +- kitty/window.py | 2 -- kitty_tests/__init__.py | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index c5e49a12a..aeea843d8 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -419,7 +419,7 @@ screen_toggle_screen_buffer(Screen *self) { self->tabstops = self->main_tabstops; screen_restore_cursor(self); } - CALLBACK("buf_toggled", "O", self->linebuf == self->main_linebuf ? Py_True : Py_False); + screen_history_scroll(self, SCROLL_FULL, false); self->is_dirty = true; } diff --git a/kitty/window.py b/kitty/window.py index 07e6e3cf7..064e6a21c 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -214,8 +214,6 @@ class Window: def request_capabilities(self, q): self.write_to_child(get_capabilities(q)) - def buf_toggled(self, is_main_linebuf): - self.screen.scroll(SCROLL_FULL, False) # }}} def text_for_selection(self): diff --git a/kitty_tests/__init__.py b/kitty_tests/__init__.py index 306f99e94..7d46dff77 100644 --- a/kitty_tests/__init__.py +++ b/kitty_tests/__init__.py @@ -30,16 +30,12 @@ class Callbacks: def request_capabilities(self, q): self.qbuf += q - def buf_toggled(self, is_alt): - self.is_alt = is_alt - def use_utf8(self, on): self.iutf8 = on def clear(self): self.wtcbuf = b'' self.iconbuf = self.titlebuf = self.colorbuf = self.qbuf = self.ctbuf = '' - self.is_alt = False self.iutf8 = True