commit 0691c4fb47fa35fcd72a97da31e93cc9d7799c3d
parent da7dc8e6e2dcd4234da012a6fecbf63c751c796d
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 8 May 2021 17:05:22 +0530
Reversed block for hovered entry in detail mode
Diffstat:
3 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/Makefile b/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_NOSSN := 0 # enable session support
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
# convert targets to flags for backwards compatibility
@@ -102,10 +101,6 @@ ifeq ($(strip $(O_NOUG)),1)
CPPFLAGS += -DNOUG
endif
-ifeq ($(strip $(O_CKBOARD)),1)
- CPPFLAGS += -DCKBOARD
-endif
-
ifeq ($(strip $(O_NOX11)),1)
CPPFLAGS += -DNOX11
endif
diff --git a/misc/haiku/Makefile b/misc/haiku/Makefile
@@ -23,7 +23,6 @@ O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
O_BENCH := 0 # benchmark mode (stops at first user input)
O_NOSSN := 0 # enable session support
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
# convert targets to flags for backwards compatibility
@@ -101,10 +100,6 @@ ifeq ($(strip $(O_NOUG)),1)
CPPFLAGS += -DNOUG
endif
-ifeq ($(strip $(O_CKBOARD)),1)
- CPPFLAGS += -DCKBOARD
-endif
-
ifeq ($(strip $(O_NOX11)),1)
CPPFLAGS += -DNOX11
endif
diff --git a/src/nnn.c b/src/nnn.c
@@ -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);
-#ifdef CKBOARD
- //addch(sel ? ACS_CKBOARD : ' ');
- addch(sel ? ' ' | A_REVERSE : ' ');
-#else
- addch(sel ? '>' | A_BOLD : ' ');
-#endif
+ addch(sel ? ' ' | A_REVERSE : ' '); /* Reversed block for hovered entry */
+
attron(attrs1);
print_details(ent);
attroff(attrs1);