Pārlūkot izejas kodu

Go to top when last saved filter is applied

master
Arun Prakash Jana pirms 5 gadiem
vecāks
revīzija
bb3d79ce21
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      plugins/README.md
  2. +3
    -0
      src/nnn.c

+ 1
- 1
plugins/README.md Parādīt failu

@@ -65,7 +65,7 @@ Plugins are installed to `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins`.

## Ways to invoke a plugin

1. Execute directly with <kbd>;key</kbd> or <kbd>xkey</kbd>:
1. Fire directly with <kbd>;key</kbd> or <kbd>^Fkey</kbd>:

export NNN_PLUG='o:fzopen;p:mocplay;d:diffs;m:nmount;n:notes;v:imgviu;t:imgthumb'



+ 3
- 0
src/nnn.c Parādīt failu

@@ -2143,6 +2143,9 @@ static int filterentries(char *path, char *lastname)
ln[1] = ln[REGEX_MAX - 1];
ln[REGEX_MAX - 1] = '\0';
len = mbstowcs(wln, ln, REGEX_MAX);
/* Go to the top, we don't know if the
hovered file will match the filter */
cur = 0;

if (matches(pln) != -1)
redraw(path);


Notiek ielāde…
Atcelt
Saglabāt