Remove the buf_toggled callback

This commit is contained in:
Kovid Goyal 2017-09-16 16:31:29 +05:30
parent 7b1576d960
commit 9cd146fe3e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 1 additions and 7 deletions

View File

@ -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;
}

View File

@ -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):

View File

@ -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