Fix offset of parent-dir item

This commit is contained in:
Yorhel 2014-01-22 12:44:51 +01:00
parent 34690e4b51
commit 3f29a46f3a

View file

@ -98,13 +98,12 @@ static void browse_draw_item(struct dir *n, int row) {
/* reference to parent dir has a different format */ /* reference to parent dir has a different format */
if(n == dirlist_parent) { if(n == dirlist_parent) {
mvhline(row, 0, ' ', wincols); mvhline(row, 0, ' ', wincols);
o = graph == 0 ? 12 : o = graph == 0 ? 13 :
graph == 1 ? 24 : graph == 1 ? 25 :
graph == 2 ? 20 : graph == 2 ? 21 :
31 ; 32 ;
if (show_items) { if(show_items)
o += 7; o += 7;
}
mvaddstr(row, o, "/.."); mvaddstr(row, o, "/..");
if(n->flags & FF_BSEL) if(n->flags & FF_BSEL)
attroff(A_REVERSE); attroff(A_REVERSE);