This is more important now that the margin is bigger due to the scaling with the window.
Unified · Split
| @@ -79,6 +79,7 @@ local line = '' · 78 unmodified lines | ||
| 79 | 79 | local cursor = 1 |
| 80 | 80 | local default_prompt = '>' |
| 81 | 81 | local prompt = default_prompt |
| 82 | +local bottom_left_margin = 6 | |
| 82 | 83 | local default_id = 'default' |
| 83 | 84 | local id = default_id |
| 84 | 85 | local histories = {[id] = {}} |
| @@ -275,7 +276,7 @@ local function calculate_max_log_lines() · 190 unmodified lines | ||
| 275 | 276 | select(2, mp.get_property('term-status-msg'):gsub('\\n', '')) |
| 276 | 277 | end |
| 277 | 278 | |
| 278 | − return math.floor(select(2, get_scaled_osd_dimensions()) | |
| 279 | + return math.floor((select(2, get_scaled_osd_dimensions()) - bottom_left_margin) | |
| 279 | 280 | * (1 - global_margins.t - global_margins.b) |
| 280 | 281 | / opts.font_size |
| 281 | 282 | -- Subtract 1 for the input line and 0.5 for the empty |
| @@ -513,8 +514,6 @@ local function update() · 231 unmodified lines | ||
| 513 | 514 | |
| 514 | 515 | local screenx, screeny = get_scaled_osd_dimensions() |
| 515 | 516 | |
| 516 | − local bottom_left_margin = 6 | |
| 517 | − | |
| 518 | 517 | local coordinate_top = math.floor(global_margins.t * screeny + 0.5) |
| 519 | 518 | local clipping_coordinates = '0,' .. coordinate_top .. ',' .. |
| 520 | 519 | screenx .. ',' .. screeny |