Commit 5051ad34 authored by Deucе's avatar Deucе 👌🏾
Browse files

Left for showbuf() is zero-based, calculate width appropriately.

parent 528edd9f
Pipeline #2833 passed with stage
in 9 minutes and 36 seconds
......@@ -2716,7 +2716,7 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
if(!width || (unsigned)width<title_len+6)
width=title_len+6;
if((unsigned)(width + left) > api->scrn_width)
width = api->scrn_width - left + 1;
width = api->scrn_width - left;
if(mode&WIN_L2R)
left=(api->scrn_width-width+2)/2;
else if(mode&WIN_RHT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment