Fixed incorrect anchor jump position calculation

This commit is contained in:
Mark Qvist 2026-05-21 23:56:59 +02:00
parent f8c57e675e
commit ab369eef70
2 changed files with 24 additions and 19 deletions

View file

@ -263,16 +263,13 @@ class GuideDisplay():
pass
def _content_cols(self):
try:
cols = self.app.ui.loop.screen.get_cols_rows()[0]
except Exception:
cols = 100
try: cols = self.app.ui.loop.screen.get_cols_rows()[0]
except Exception: cols = 100
try:
widths = self.columns.column_widths((cols,))
if len(widths) > 1 and widths[1] > 0:
return max(40, widths[1] - 3)
except Exception:
pass
if len(widths) > 1 and widths[1] > 0: return max(40, widths[1] - 3)
except Exception: pass
return max(40, int(cols * (1 - GuideDisplay.list_width)) - 3)
def shortcuts(self):