mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Reversed block for hovered entry in detail mode
This commit is contained in:
parent
da7dc8e6e2
commit
0691c4fb47
5
Makefile
5
Makefile
|
@ -25,7 +25,6 @@ O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
|
||||||
O_BENCH := 0 # benchmark mode (stops at first user input)
|
O_BENCH := 0 # benchmark mode (stops at first user input)
|
||||||
O_NOSSN := 0 # enable session support
|
O_NOSSN := 0 # enable session support
|
||||||
O_NOUG := 0 # disable user, group name in status bar
|
O_NOUG := 0 # disable user, group name in status bar
|
||||||
O_CKBOARD := 0 # use checker board (stipple) in detail mode
|
|
||||||
O_NOX11 := 0 # disable X11 integration
|
O_NOX11 := 0 # disable X11 integration
|
||||||
|
|
||||||
# convert targets to flags for backwards compatibility
|
# convert targets to flags for backwards compatibility
|
||||||
|
@ -102,10 +101,6 @@ ifeq ($(strip $(O_NOUG)),1)
|
||||||
CPPFLAGS += -DNOUG
|
CPPFLAGS += -DNOUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(O_CKBOARD)),1)
|
|
||||||
CPPFLAGS += -DCKBOARD
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(O_NOX11)),1)
|
ifeq ($(strip $(O_NOX11)),1)
|
||||||
CPPFLAGS += -DNOX11
|
CPPFLAGS += -DNOX11
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -23,7 +23,6 @@ O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
|
||||||
O_BENCH := 0 # benchmark mode (stops at first user input)
|
O_BENCH := 0 # benchmark mode (stops at first user input)
|
||||||
O_NOSSN := 0 # enable session support
|
O_NOSSN := 0 # enable session support
|
||||||
O_NOUG := 0 # disable user, group name in status bar
|
O_NOUG := 0 # disable user, group name in status bar
|
||||||
O_CKBOARD := 0 # use checker board (stipple) in detail mode
|
|
||||||
O_NOX11 := 0 # disable X11 integration
|
O_NOX11 := 0 # disable X11 integration
|
||||||
|
|
||||||
# convert targets to flags for backwards compatibility
|
# convert targets to flags for backwards compatibility
|
||||||
|
@ -101,10 +100,6 @@ ifeq ($(strip $(O_NOUG)),1)
|
||||||
CPPFLAGS += -DNOUG
|
CPPFLAGS += -DNOUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(O_CKBOARD)),1)
|
|
||||||
CPPFLAGS += -DCKBOARD
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(O_NOX11)),1)
|
ifeq ($(strip $(O_NOX11)),1)
|
||||||
CPPFLAGS += -DNOX11
|
CPPFLAGS += -DNOX11
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -3782,12 +3782,8 @@ static void printent_long(const struct entry *ent, uint_t namecols, bool sel)
|
||||||
{
|
{
|
||||||
int attrs1 = g_state.oldcolor ? A_DIM : COLOR_PAIR(C_MIS);
|
int attrs1 = g_state.oldcolor ? A_DIM : COLOR_PAIR(C_MIS);
|
||||||
|
|
||||||
#ifdef CKBOARD
|
addch(sel ? ' ' | A_REVERSE : ' '); /* Reversed block for hovered entry */
|
||||||
//addch(sel ? ACS_CKBOARD : ' ');
|
|
||||||
addch(sel ? ' ' | A_REVERSE : ' ');
|
|
||||||
#else
|
|
||||||
addch(sel ? '>' | A_BOLD : ' ');
|
|
||||||
#endif
|
|
||||||
attron(attrs1);
|
attron(attrs1);
|
||||||
print_details(ent);
|
print_details(ent);
|
||||||
attroff(attrs1);
|
attroff(attrs1);
|
||||||
|
|
Loading…
Reference in a new issue