mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Minor reformat
This commit is contained in:
parent
a85467d462
commit
d86810a425
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@ O_NOMOUSE := 0 # no mouse support
|
|||
O_NOBATCH := 0 # no built-in batch renamer
|
||||
O_NOFIFO := 0 # no FIFO previewer support
|
||||
O_CTX8 := 0 # enable 8 contexts
|
||||
O_ICONS := 0 # support icons
|
||||
O_ICONS := 0 # support icons
|
||||
|
||||
# convert targets to flags for backwards compatibility
|
||||
ifneq ($(filter debug,$(MAKECMDGOALS)),)
|
||||
|
|
|
@ -17,7 +17,7 @@ O_NOMOUSE := 0 # no mouse support
|
|||
O_NOBATCH := 0 # no built-in batch renamer
|
||||
O_NOFIFO := 0 # no FIFO previewer support
|
||||
O_CTX8 := 0 # enable 8 contexts
|
||||
O_ICONS := 0 # support icons
|
||||
O_ICONS := 0 # support icons
|
||||
|
||||
# convert targets to flags for backwards compatibility
|
||||
ifneq ($(filter debug,$(MAKECMDGOALS)),)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
struct icon_pair {
|
||||
const char *match;
|
||||
const char *icon;
|
||||
const unsigned char color;
|
||||
const unsigned char color; /* Hex xterm 256 color code, 0 to follow file specific */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -3482,10 +3482,9 @@ static const char *get_icon(const struct entry *ent){
|
|||
i = 27; /* OTHER */
|
||||
|
||||
for (j = icon_positions[i]; j < sizeof(icons_ext)/sizeof(struct icon_pair) &&
|
||||
icons_ext[j].match[0] == icons_ext[icon_positions[i]].match[0]; ++j) {
|
||||
icons_ext[j].match[0] == icons_ext[icon_positions[i]].match[0]; ++j)
|
||||
if (strcasecmp(tmp, icons_ext[j].match) == 0)
|
||||
return icons_ext[j].icon;
|
||||
}
|
||||
|
||||
return file_icon.icon;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue