]> Sergey Matveev's repositories - nnn.git/commitdiff
When filter is empty, open file on Enter
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 6 Jun 2017 21:34:47 +0000 (03:04 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 6 Jun 2017 21:34:47 +0000 (03:04 +0530)
README.md
nnn.1
nnn.c

index 651d953e2d41bc0680016abff97bd857f093d63b..b04ac14ed37b14fbf23cd148d9ab82a8abc3de4a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -188,7 +188,7 @@ Right, Enter, l, ^M | Open file or enter dir
 
 Filters support regexes to display only the matched entries in the current directory view. This effectively allows searching through the directory tree for a particular entry. Matching entries are shown instantly (search-as-you-type).
 
-Filters do not stack on top of each other. They are applied anew every time. There are 4 ways to reset a filter: <kbd>^L</kbd>, an empty filter expression, a search with no results or an extra backspace at the filter prompt (like vi).
+Filters do not stack on top of each other. They are applied anew every time. There are 3 ways to reset a filter: <kbd>^L</kbd>, a search with no matches or an extra backspace at the filter prompt (like vi).
 
 Examples: If you want to list all matches starting with the filter expression (a common use case), start the expression with a `^` (caret) symbol. To list all MKV files type `\.mkv`.
 
diff --git a/nnn.1 b/nnn.1
index a80bef71783592a7cdf1181eeaddf1f8dd1512c4..be7737d309a7b4bce7b083f802cc45f7b6722ecb 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -139,9 +139,8 @@ searching through the directory tree for a particular entry. Matching entries
 are shown instantly (\fIsearch-as-you-type\fR).
 .Pp
 Filters do not stack on top of each other. They are applied anew
-every time. There are 4 ways to reset a filter: \fI^L\fR, an empty filter
-expression, a search with no results or an extra backspace at the filter prompt
-(like vi).
+every time. There are 3 ways to reset a filter: \fI^L\fR, a search with no
+matches or an extra backspace at the filter prompt (like vi).
 .Pp
 If you want to list all matches starting with the filter expression (a common
 use case), start the expression with a
diff --git a/nnn.c b/nnn.c
index 5cf5d2523dfc9b9748f04f64f451ba7ea6631596..e3c50919f83f0aace998b2faeacbe49711761032 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -727,7 +727,6 @@ readln(char *path)
                        case '\r':  // with nonl(), this is ENTER key value
                                if (len == 1) {
                                        cur = oldcur;
-                                       *ch = CONTROL('L');
                                        goto end;
                                }