mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 08:26:31 +01:00
alsamixer: fix text box clipping with multi-column characters
When a multi-column character would straddle the left window border of a text box, we have to take the inserted space character into account when we compute how many characters fit into the rest of the line. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
parent
8290353c5f
commit
730e8253ef
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ static void update_text_lines(void)
|
|||
if (width > current_left)
|
||||
waddch(text_widget.window, ' ');
|
||||
if (*line_begin != '\0') {
|
||||
width = text_box_x;
|
||||
width = text_box_x - (width > current_left);
|
||||
line_end = mbs_at_width(line_begin, &width, -1);
|
||||
if (width)
|
||||
waddnstr(text_widget.window, line_begin,
|
||||
|
|
Loading…
Reference in a new issue