Skip to content

Long, spaceless messages get cut off #202

@trevarj

Description

@trevarj

Long messages that don't have enough spaces to line wrap get truncated.

I believe this is due to the draw() in line.rs and how it handles when there is no whitespace to split on.

                    // Not possible to split. Need to make sure we don't render out
                    // of bounds.
                    if col - pos_x < width {
                        if line >= first_line {
                            tb.change_cell(col, pos_y + line, char, sty.fg, sty.bg);
                        }
                        col += 1;
                    }

This isn't a huge problem. Personally, I would just resize the window and hope that the message/link can all fit, but it's probably a pain for people using a tiling window manager...

Wide view:
image
Compact view:
image

Tested on master

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglibtiny_tuiIssues/PRs related to the TUI library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions