Skip to content

Commit

Permalink
add more debug info to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Jan 21, 2024
1 parent e080be0 commit 097b46c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cat_win/util/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ def _render_scr(self) -> None:
status_bar = f"File: ...{self.file[-necc_space:] * bool(necc_space)} "
status_bar += f"| Exit: ^q | Save: ^s | Pos: {self.cpos.col}, {self.cpos.row} "
status_bar += f"| {'NOT ' * self.unsaved_progress}Saved!"[:max_x]
if self.debug_mode:
status_bar += f" - Win: {self.wpos.col} {self.wpos.row} | {max_y}x{max_x}"
status_bar = status_bar.ljust(max_x)
self.curse_window.addstr(max_y + self.status_bar_size - 1, 0,
status_bar, self._get_color(1))
Expand Down

0 comments on commit 097b46c

Please sign in to comment.