]> Sergey Matveev's repositories - nnn.git/commitdiff
Reversed block for hovered entry in detail mode
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 8 May 2021 11:35:22 +0000 (17:05 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 8 May 2021 11:35:22 +0000 (17:05 +0530)
Makefile
misc/haiku/Makefile
src/nnn.c

index cd3fe9f6a09a5d2fecac0278cda023a598a3a3b4..c830a26c822a7231846f9718f64a1f0ba34a8f98 100644 (file)
--- 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
index 4d3adc485f9f2be22734677fbc4e0e98e4fb1680..9f847ba9ecabf6dd322c98b88d2561245b670e0e 100644 (file)
@@ -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
index f734157dc619474f28d47bed304eba21b5c89720..117863693c8a5a425107784bdc262caf21a061ca 100644 (file)
--- 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);