mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Fix offset of parent-dir item
This commit is contained in:
parent
34690e4b51
commit
3f29a46f3a
1 changed files with 5 additions and 6 deletions
|
|
@ -98,13 +98,12 @@ static void browse_draw_item(struct dir *n, int row) {
|
|||
/* reference to parent dir has a different format */
|
||||
if(n == dirlist_parent) {
|
||||
mvhline(row, 0, ' ', wincols);
|
||||
o = graph == 0 ? 12 :
|
||||
graph == 1 ? 24 :
|
||||
graph == 2 ? 20 :
|
||||
31 ;
|
||||
if (show_items) {
|
||||
o = graph == 0 ? 13 :
|
||||
graph == 1 ? 25 :
|
||||
graph == 2 ? 21 :
|
||||
32 ;
|
||||
if(show_items)
|
||||
o += 7;
|
||||
}
|
||||
mvaddstr(row, o, "/..");
|
||||
if(n->flags & FF_BSEL)
|
||||
attroff(A_REVERSE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue