summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-01-22 12:44:51 +0100
committerYorhel <git@yorhel.nl>2014-01-22 12:44:51 +0100
commit3f29a46f3ab94090448f793a7d7c90c6743e84be (patch)
treecc116ded3de7fea0418e76dcdff901656a667ede
parent34690e4b5137b09e88e441e40b4077747f5e90bd (diff)
Fix offset of parent-dir item
-rw-r--r--src/browser.c11
1 files 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);