Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
a4480b95
Commit
a4480b95
authored
16 years ago
by
yorhel
Browse files
Options
Downloads
Patches
Plain Diff
Got rid of the FF_PAR hack
git-svn-id:
svn://blicky.net/ncdu/trunk@35
ce56bc8d-f834-0410-b703-f827bd498a76
parent
9e2eb51e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/browser.c
+2
-3
2 additions, 3 deletions
src/browser.c
src/ncdu.h
+0
-1
0 additions, 1 deletion
src/ncdu.h
with
2 additions
and
4 deletions
src/browser.c
+
2
−
3
View file @
a4480b95
...
@@ -135,7 +135,7 @@ char *graph(off_t max, off_t size) {
...
@@ -135,7 +135,7 @@ char *graph(off_t max, off_t size) {
#define exlhid(x) if(bflags & BF_HIDE && (\
#define exlhid(x) if(bflags & BF_HIDE && (\
(
!(x->flags & FF_PAR)
&& (x->name[0] == '.' || x->name[strlen(x->name)-1] == '~'))\
(
x != &ref
&& (x->name[0] == '.' || x->name[strlen(x->name)-1] == '~'))\
|| x->flags & FF_EXL)\
|| x->flags & FF_EXL)\
) { i--; continue; }
) { i--; continue; }
...
@@ -183,7 +183,6 @@ void drawBrowser(int change) {
...
@@ -183,7 +183,6 @@ void drawBrowser(int change) {
/* add reference to parent dir */
/* add reference to parent dir */
memset
(
&
ref
,
0
,
sizeof
(
struct
dir
));
memset
(
&
ref
,
0
,
sizeof
(
struct
dir
));
if
(
bcur
->
parent
->
parent
)
{
if
(
bcur
->
parent
->
parent
)
{
ref
.
flags
|=
FF_PAR
;
ref
.
name
=
".."
;
ref
.
name
=
".."
;
ref
.
next
=
bcur
;
ref
.
next
=
bcur
;
ref
.
parent
=
bcur
->
parent
;
ref
.
parent
=
bcur
->
parent
;
...
@@ -242,7 +241,7 @@ void drawBrowser(int change) {
...
@@ -242,7 +241,7 @@ void drawBrowser(int change) {
attron
(
A_REVERSE
);
attron
(
A_REVERSE
);
/* reference to parent dir has a different format */
/* reference to parent dir has a different format */
if
(
n
->
flags
&
FF_PAR
)
{
if
(
n
==
&
ref
)
{
mvhline
(
i
+
2
,
0
,
' '
,
wincols
);
mvhline
(
i
+
2
,
0
,
' '
,
wincols
);
o
=
bgraph
==
0
?
11
:
o
=
bgraph
==
0
?
11
:
bgraph
==
1
?
23
:
bgraph
==
1
?
23
:
...
...
This diff is collapsed.
Click to expand it.
src/ncdu.h
+
0
−
1
View file @
a4480b95
...
@@ -98,7 +98,6 @@
...
@@ -98,7 +98,6 @@
#define FF_EXL 0x10
/* excluded using exlude patterns */
#define FF_EXL 0x10
/* excluded using exlude patterns */
#define FF_SERR 0x20
/* error in subdirectory */
#define FF_SERR 0x20
/* error in subdirectory */
#define FF_BSEL 0x40
/* selected */
#define FF_BSEL 0x40
/* selected */
#define FF_PAR 0x80
/* reference to parent directory (hack - only used in browser.c) */
/* Settings Flags (int sflags) */
/* Settings Flags (int sflags) */
#define SF_SMFS 0x01
/* same filesystem */
#define SF_SMFS 0x01
/* same filesystem */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment