Sfoglia il codice sorgente

Handle some keys as special only if filter is empty

master
Arun Prakash Jana 4 anni fa
parent
commit
feb1d2fc27
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Vedi File

@@ -2085,12 +2085,12 @@ static int filterentries(char *path)
switch (*ch) {
case '/': /* works as Leader key in filter mode */
*ch = CONTROL('_'); // fallthrough
case ':':
case ';':
if (len == 1)
cur = oldcur;
goto end;
case '?': /* '?' is an invalid regex, show help instead */
case ':': // fallthrough /* Run plugin keys */
case ';': // fallthrough
case '?': /* Help and config key, '?' is an invalid regex */
if (len == 1) {
cur = oldcur;
goto end;


Loading…
Annulla
Salva