@@ -303,9 +303,6 @@ def calc_screen(self) -> list[str]:
303303 screeninfo = self .last_refresh_cache .screeninfo .copy ()
304304 del screeninfo [num_common_lines :]
305305
306- last_refresh_line_end_offsets = self .last_refresh_cache .line_end_offsets .copy ()
307- del last_refresh_line_end_offsets [num_common_lines :]
308-
309306 pos = self .pos
310307 pos -= offset
311308
@@ -338,7 +335,6 @@ def calc_screen(self) -> list[str]:
338335 prompt = self .get_prompt (ln , line_len >= pos >= 0 )
339336 while "\n " in prompt :
340337 pre_prompt , _ , prompt = prompt .partition ("\n " )
341- last_refresh_line_end_offsets .append (offset )
342338 screen .append (pre_prompt )
343339 screeninfo .append ((0 , []))
344340 pos -= line_len + 1
@@ -347,7 +343,6 @@ def calc_screen(self) -> list[str]:
347343 wrapcount = (sum (char_widths ) + prompt_len ) // self .console .width
348344 if wrapcount == 0 or not char_widths :
349345 offset += line_len + 1 # Takes all of the line plus the newline
350- last_refresh_line_end_offsets .append (offset )
351346 screen .append (prompt + "" .join (chars ))
352347 screeninfo .append ((prompt_len , char_widths ))
353348 else :
@@ -369,7 +364,6 @@ def calc_screen(self) -> list[str]:
369364 offset += index_to_wrap_before + 1 # Takes the newline
370365 post = ""
371366 after = []
372- last_refresh_line_end_offsets .append (offset )
373367 render = pre + "" .join (chars [:index_to_wrap_before ]) + post
374368 render_widths = char_widths [:index_to_wrap_before ] + after
375369 screen .append (render )
0 commit comments