From 70f7adecdac8469c4dbcf7f47a69f07d110fd074 Mon Sep 17 00:00:00 2001
From: yorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>
Date: Tue, 7 Aug 2007 09:38:54 +0000
Subject: [PATCH] Fixed version in ncdu.1, and filenames ending with a tilde
 are now also hidden with the 'h'-key

git-svn-id: svn://blicky.net/ncdu/trunk@24 ce56bc8d-f834-0410-b703-f827bd498a76
---
 doc/ncdu.1    | 2 +-
 src/browser.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/ncdu.1 b/doc/ncdu.1
index e55a9b4..ef5e1d5 100644
--- a/doc/ncdu.1
+++ b/doc/ncdu.1
@@ -1,5 +1,5 @@
 ." Text automatically generated by txt2man
-.TH NCDU 1 "July 21, 2007" "ncdu-1.2" "ncdu manual"
+.TH NCDU 1 "July 21, 2007" "ncdu-svn" "ncdu manual"
 .SH NAME
 \fBncdu \fP- NCurses Disk Usage
 .SH SYNOPSIS
diff --git a/src/browser.c b/src/browser.c
index ac6c68d..74b80c2 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -145,7 +145,7 @@ char *graph(off_t max, off_t size) {
 
 
 #define exlhid(x) if(bflags & BF_HIDE && (\
-    (!(x->flags & FF_PAR) && x->name[0] == '.')\
+    (!(x->flags & FF_PAR) && (x->name[0] == '.' || x->name[strlen(x->name)-1] == '~'))\
     || x->flags & FF_EXL)\
   ) { i--; continue; }
 
-- 
GitLab