From 44bd0aea5bdfdab33de5eb2cf1388ff3c6bd8011 Mon Sep 17 00:00:00 2001 From: David <2889367+daveleroy@users.noreply.github.com> Date: Mon, 29 Jan 2024 23:40:54 -0800 Subject: [PATCH] Fixes issue with the bottom bar being above/below depending on what the user has line_padding_top set to --- modules/console.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/console.py b/modules/console.py index e4cb3ab..6c6764f 100644 --- a/modules/console.py +++ b/modules/console.py @@ -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]):