diff --git a/src/browser.c b/src/browser.c index f61184eff40a54217e899e5e0a50d55d73f546f4..c6b4eee94258ed458a4eab29471489e410e81394 100644 --- a/src/browser.c +++ b/src/browser.c @@ -171,7 +171,10 @@ void drawBrowser(int change) { attroff(A_REVERSE); mvhline(1, 0, '-', wincols); - mvaddstr(1, 3, cropdir(getpath(bcur, tmp), wincols-5)); + mvaddch(1, 3, ' '); + getpath(bcur, tmp); + mvaddstr(1, 4, cropdir(tmp, wincols-8)); + mvaddch(1, 4+(strlen(tmp) > wincols-8 ? wincols-8 : strlen(tmp)), ' '); /* make sure the items are in correct order */ if(!(bflags & BF_SORT)) {