From 4fdebc82d54de1106f1369fb36ff8d440f207443 Mon Sep 17 00:00:00 2001
From: yorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>
Date: Sat, 2 Aug 2008 18:29:35 +0000
Subject: [PATCH] Added spaces around the path in browser.c (debian bug
 #472194)

git-svn-id: svn://blicky.net/ncdu/trunk@38 ce56bc8d-f834-0410-b703-f827bd498a76
---
 src/browser.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/browser.c b/src/browser.c
index f61184e..c6b4eee 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)) {
-- 
GitLab