From 3f29a46f3ab94090448f793a7d7c90c6743e84be Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Wed, 22 Jan 2014 12:44:51 +0100 Subject: [PATCH] Fix offset of parent-dir item --- src/browser.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/browser.c b/src/browser.c index 3647b30..1039834 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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); -- GitLab