]> Sergey Matveev's repositories - nnn.git/commitdiff
order toggle: show invalid key prompt (#433)
authorMaxim Baz <git@maximbaz.com>
Mon, 13 Jan 2020 13:09:54 +0000 (14:09 +0100)
committerMischievous Meerkat <engineerarun@gmail.com>
Mon, 13 Jan 2020 13:09:54 +0000 (18:39 +0530)
* order toggle: show invalid key prompt

* don't call statusbar()

src/nnn.c

index c5ae00c1ffef04c5d4fb2deb9d76081685362240..ac7c9bbbd51666c12fd6517ea308880394f55a9b 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5033,7 +5033,9 @@ nochange:
                                        namecmpfn = (namecmpfn == &xstrverscasecmp) ? &xstricmp : &xstrverscasecmp;
                                        break;
                                default:
-                                       cfg.filtermode ? presel = FILTER : statusbar(path);
+                                       if (cfg.filtermode)
+                                               presel = FILTER;
+                                       printwait(messages[MSG_INVALID_KEY], &presel);
                                        goto nochange;
                                }
                        }