mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Copy the correct length
This commit is contained in:
parent
90cf84186a
commit
4178aaa98e
|
@ -30,7 +30,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
|
||||||
|
|
||||||
- Instantly load, sort, filter thousands of files
|
- Instantly load, sort, filter thousands of files
|
||||||
- Type to navigate with automatic dir selection
|
- Type to navigate with automatic dir selection
|
||||||
- Never lose context - start where you quit `nnn`
|
- Never lose context - start where you quit
|
||||||
- find/fd/grep/ripgrep/fzf from `nnn` and list in `nnn`
|
- find/fd/grep/ripgrep/fzf from `nnn` and list in `nnn`
|
||||||
- Mount any cloud storage service in a few keypresses
|
- Mount any cloud storage service in a few keypresses
|
||||||
- Select files from anywhere (not just a single dir)
|
- Select files from anywhere (not just a single dir)
|
||||||
|
|
|
@ -6433,7 +6433,7 @@ nochange:
|
||||||
*/
|
*/
|
||||||
if (strcmp(path, plgpath) == 0) {
|
if (strcmp(path, plgpath) == 0) {
|
||||||
xstrsncpy(path, rundir, PATH_MAX);
|
xstrsncpy(path, rundir, PATH_MAX);
|
||||||
xstrsncpy(lastname, runfile, NAME_MAX);
|
xstrsncpy(lastname, runfile, NAME_MAX + 1);
|
||||||
rundir[0] = runfile[0] = '\0';
|
rundir[0] = runfile[0] = '\0';
|
||||||
setdirwatch();
|
setdirwatch();
|
||||||
goto begin;
|
goto begin;
|
||||||
|
|
Loading…
Reference in a new issue