mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
improved width fix: changing strlen to strwidth
This commit is contained in:
parent
e7c02c8249
commit
1caa360a53
4
h-m-m
4
h-m-m
|
@ -3377,8 +3377,8 @@ function display(&$mm, $force_center = false)
|
||||||
|
|
||||||
// ensuring that the line is long enough even if the map line is
|
// ensuring that the line is long enough even if the map line is
|
||||||
// shorter than the terminal width
|
// shorter than the terminal width
|
||||||
if (mb_strlen($line) < $mm['terminal_width'])
|
if (mb_strwidth($line) < $mm['terminal_width'])
|
||||||
$line .= str_repeat(' ', $mm['terminal_width'] - mb_strlen($line));
|
$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
|
||||||
|
|
Loading…
Reference in a new issue