Fix index() not clearing lines

This commit is contained in:
Kovid Goyal
2016-11-10 12:52:40 +05:30
parent b12af6f21d
commit b20aea2e7d

View File

@@ -458,8 +458,8 @@ class Screen:
self.linebuf.copy_line_to(bottom, l)
else:
self.tophistorybuf.append(self.linebuf.create_line_copy(bottom))
self.linebuf.clear_line(bottom)
self.line_added_to_history()
self.linebuf.clear_line(bottom)
if bottom - top >= self.lines - 1:
self.update_screen()
else: