mirror of
https://github.com/nadrad/h-m-m.git
synced 2026-03-13 20:25:45 +01:00
Merge pull request #72 from wschroeder/main
fix(display): ensure base line length is equal to terminal width even…
This commit is contained in:
commit
3bd33805dc
1 changed files with 6 additions and 0 deletions
6
h-m-m
6
h-m-m
|
|
@ -3374,6 +3374,12 @@ function display(&$mm, $force_center = false)
|
||||||
else
|
else
|
||||||
$line = $blank;
|
$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
|
// this one really depends on (x,y), but after this, the
|
||||||
// coordinates are not reliable anymore because of the
|
// coordinates are not reliable anymore because of the
|
||||||
// added escape codes.
|
// added escape codes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue