Skip to content

Commit

Permalink
feat: check for change in x pos in addch buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 30, 2024
1 parent 3f104ce commit 9fd38d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acurses.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _clear_buffer(self) -> None:

def addch(self, y: int, x: int, char: str, attr: int = 0) -> None:
"""Add a character to the screen"""
if attr != self._stored_attr or y != self._stored_y:
if attr != self._stored_attr or y != self._stored_y or x - self._stored_x > 1:
if self._buffer:
self._clear_buffer()
self._stored_attr = attr
Expand Down

0 comments on commit 9fd38d0

Please sign in to comment.