Skip to content

Commit

Permalink
fix: top-level: Remove undefined ref in functions
Browse files Browse the repository at this point in the history
- Fix: Remove reference to
  `.utils.get_cell_size._invalidate_terminal_size_cache()` in top-level
  functions:

  - `disable_win_size_swap()`
  - `enable_queries()`
  - `enable_win_size_swap()`

  `get_cell_size()` is no longer decorated with `@.utils.terminal_size_cached`.

Broken in commit da0e50c of #87.

Related to 497d9b7.
  • Loading branch information
AnonymouX47 committed Oct 26, 2023
1 parent 65aeb4c commit 4e8b3e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/term_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def disable_win_size_swap():
"""
if utils._swap_win_size:
utils._swap_win_size = False
utils.get_cell_size._invalidate_terminal_size_cache()
with utils._cell_size_lock:
utils._cell_size_cache[:] = (0,) * 4

Expand All @@ -119,7 +118,6 @@ def enable_queries() -> None:
"""
if not utils._queries_enabled:
utils._queries_enabled = True
utils.get_cell_size._invalidate_terminal_size_cache()
utils.get_fg_bg_colors._invalidate_cache()
utils.get_terminal_name_version._invalidate_cache()
with utils._cell_size_lock:
Expand All @@ -139,7 +137,6 @@ def enable_win_size_swap():
"""
if not utils._swap_win_size:
utils._swap_win_size = True
utils.get_cell_size._invalidate_terminal_size_cache()
with utils._cell_size_lock:
utils._cell_size_cache[:] = (0,) * 4

Expand Down

0 comments on commit 4e8b3e7

Please sign in to comment.