mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
Compare commits
7 commits
719e4a048b
...
1caa360a53
Author | SHA1 | Date | |
---|---|---|---|
1caa360a53 | |||
e7c02c8249 | |||
a7ac9a254d | |||
3bd33805dc | |||
63ef829129 | |||
0ff42afd04 | |||
e6bf8e4d7e |
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_strwidth($line) < $mm['terminal_width'])
|
||||||
|
$line .= str_repeat(' ', $mm['terminal_width'] - mb_strwidth($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…
Reference in a new issue