When you have word wrap enabled, and the directory/header text becomes long, it could take up multiple lines.
The problem is that the line that is drawn below the header also takes up just as many lines.
I would suggest making the line's length be something like:
math.min(window pane's inner width, width of header text)
this way you have a consistent single line that acts as a separator.
Or you could just remove the line all together and replace it with an actual separator if that is possible.
When you have word wrap enabled, and the directory/header text becomes long, it could take up multiple lines. The problem is that the line that is drawn below the header also takes up just as many lines.
I would suggest making the line's length be something like: math.min(window pane's inner width, width of header text)
this way you have a consistent single line that acts as a separator.
Or you could just remove the line all together and replace it with an actual separator if that is possible.