Parcourir la source

Clear prompt after running a command.

master
Arun Prakash Jana il y a 4 ans
Parent
révision
05c84f7b80
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: A75979F35C080412
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. +10
    -0
      src/nnn.c

+ 10
- 0
src/nnn.c Voir le fichier

@@ -1976,6 +1976,16 @@ static int filterentries(char *path)
/* If there's a filter, try a command on ^P */
if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) {
prompt_run(pln, (ndents ? dents[cur].name : ""), path);

/* Clear the prompt */
while (len > 1)
wln[--len] = '\0';
wcstombs(ln, wln, REGEX_MAX);
ndents = total;
if (matches(pln) != -1)
redraw(path);

printprompt(ln);
continue;
}



Chargement…
Annuler
Enregistrer