Merge pull request #72 from wschroeder/main

fix(display): ensure base line length is equal to terminal width even…
This commit is contained in:
Nader K. Rad 2024-04-08 08:26:18 +02:00 committed by GitHub
commit 3bd33805dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
h-m-m
View file

@ -3374,6 +3374,12 @@ function display(&$mm, $force_center = false)
else
$line = $blank;
// ensuring that the line is long enough even if the map line is
// shorter than the terminal width
if (mb_strlen($line) < $mm['terminal_width'])
$line .= str_repeat(' ', $mm['terminal_width'] - mb_strlen($line));
// this one really depends on (x,y), but after this, the
// coordinates are not reliable anymore because of the
// added escape codes.