Skip to content

Commit

Permalink
Fixes issue with the bottom bar being above/below depending on what t…
Browse files Browse the repository at this point in the history
…he user has line_padding_top set to
  • Loading branch information
daveleroy committed Jan 30, 2024
1 parent 50f7b00 commit 44bd0ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def __init__(self, debugger: Debugger) -> None:
settings.set('auto_complete_selector', 'debugger.console')
settings.set('debugger.console', True)

# adjust the line padding so line_padding_top is always 3 but the space between lines is the same as what the user already has set
# If < 3 there is space at the bottom
# if > 3 it gets clipped at the bottom
line_padding_bottom = settings.get('line_padding_bottom', 0)
line_padding_top = settings.get('line_padding_top', 0)
settings.set('line_padding_top', 3)
settings.set('line_padding_bottom', line_padding_bottom + line_padding_top - 3)

self.clear()

def edit(self, fn: Callable[[sublime.Edit], Any]):
Expand Down

0 comments on commit 44bd0ae

Please sign in to comment.