Content-Length: 216960 | pFad | http://github.com/ngn13/lspp/commit/181389ce33368906902e2a86009e7577173601fe

7E priority for the name icons · ngn13/lspp@181389c · GitHub
Skip to content

Commit

Permalink
priority for the name icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn13 committed Dec 17, 2023
1 parent f740e30 commit 181389c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/icons.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ struct IconMap namemap[] = {
};

char* find_icon(char* e, struct stat s) {
for(int i = 0; i < sizeof(namemap)/sizeof(struct IconMap); i++) {
if(eq(e, namemap[i].name)) {
return namemap[i].icon;
}
}

for(int i = 0; i < sizeof(extmap)/sizeof(struct IconMap); i++) {
if(eq(e, ".") || eq(e, "..")){
return "";
Expand All @@ -88,12 +94,6 @@ char* find_icon(char* e, struct stat s) {
}
}

for(int i = 0; i < sizeof(namemap)/sizeof(struct IconMap); i++) {
if(eq(e, namemap[i].name)) {
return namemap[i].icon;
}
}

switch (s.st_mode & S_IFMT) {
case S_IFDIR:
return "";
Expand Down

0 comments on commit 181389c

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ngn13/lspp/commit/181389ce33368906902e2a86009e7577173601fe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy