]> Sergey Matveev's repositories - nnn.git/commitdiff
Redraw in non-filter mode after hovered file deletion
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 16:16:15 +0000 (21:46 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 16:16:15 +0000 (21:46 +0530)
README.md
src/nnn.c

index c65beb54fe12a93833acb6fbe926330eb56bbd7c..8289c7b4fc706f9af7305b43e50150eacb08e949 100644 (file)
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ Add to that an awesome [Wiki](https://github.com/jarun/nnn/wiki)!
 
 1. Install the [utilities you may need](https://github.com/jarun/nnn#utility-dependencies) based on your regular workflows.
 2. Configure [cd on quit](https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit).
-3. Optionally open all text files in `$EDITOR` (fallback vi): `export NNN_USE_EDITOR=1`
+3. Optionally open all text files in `$EDITOR` (fallback vi): `export NNN_USE_EDITOR=1`.
 4. For additional functionality [install plugins](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins) and the GUI app launcher [`nlaunch`](https://github.com/jarun/nnn/tree/master/misc/nlaunch).
 
 Notes:
index 946ffd47fe236478e08ea536e5daeb0800754f9b..cb4112d4112c78c3a001b092d9a9f9976970df3b 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4741,14 +4741,12 @@ nochange:
                        xrm(newpath);
 
                        /* Don't optimize cur if filtering is on */
-                       if (!cfg.filtermode && cur && access(newpath, F_OK) == -1)
+                       if (cur && access(newpath, F_OK) == -1)
                                move_cursor(cur - 1, 0);
 
                        /* We reduce cur only if it is > 0, so it's at least 0 */
                        copycurname();
 
-                       if (cfg.filtermode)
-                               presel = FILTER;
                        goto begin;
                }
                case SEL_ARCHIVE: // fallthrough