Commit 7e547ca5 authored by deuce's avatar deuce
Browse files

Do not shorten title unless it's too long. *blush*

parent 1cb02e18
......@@ -383,10 +383,12 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
}
if(width>(SCRN_RIGHT+1)-SCRN_LEFT) {
width=(SCRN_RIGHT+1)-SCRN_LEFT;
*(title+width-7)='.';
*(title+width-6)='.';
*(title+width-5)='.';
*(title+width-4)=0;
if(strlen(title)>(width-4)) {
*(title+width-7)='.';
*(title+width-6)='.';
*(title+width-5)='.';
*(title+width-4)=0;
}
}
if(mode&WIN_L2R)
left=36-(width/2);
......
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