nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/4] search: make highlighting the standard, non-changeable behav


From: Benno Schulenberg
Subject: [PATCH 2/4] search: make highlighting the standard, non-changeable behavior
Date: Tue, 2 Feb 2021 15:20:36 +0100

Highlighting an occurrence is so much clearer than just putting the
cursor on it.  People seem to like it.  So let's make this how nano
behaves by default.
---
 src/search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c
index bb81cf21..a3a94bb4 100644
--- a/src/search.c
+++ b/src/search.c
@@ -323,7 +323,7 @@ int findnextstr(const char *needle, bool whole_word_only, 
int modus,
                *match_len = found_len;
 
 #ifndef NANO_TINY
-       if (modus == JUSTFIND && ISSET(MARK_MATCH) && (!openfile->mark || 
openfile->softmark)) {
+       if (modus == JUSTFIND && (!openfile->mark || openfile->softmark)) {
                spotlighted = TRUE;
                light_from_col = xplustabs();
                light_to_col = wideness(line->data, found_x + found_len);
-- 
2.29.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]