Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tangledhelix committed Nov 17, 2024
1 parent 9c4a7e3 commit a620c39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/guiguts/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ def get_screen_window_coordinates() -> tuple[str, str]:
Find start and end coordinates for viewport (with a margin of
offscreen text added for padding).
"""
# TODO: check if peer exists (see PrefKey.SPLIT_TEXT_WINDOW)
# TODO: if it does, can get peer's coords with maintext().peer.yview()
# maybe refactor this method to take a text widget as an arg
# (are maintext() and maintext().peer the same kind of thing??)
# and then in some places we can get only main input's coords and in others we can get peer's?

# A magic number cribbed from Tk.pm's TextEdit.pm.
# This is how many rows to explore beyond the visible viewport.
offscreen_rows = 80
Expand Down

0 comments on commit a620c39

Please sign in to comment.