You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create directories aaa and ccc - note each time directory is created, nnn shifts selection so cursor points to newly created entry - this working as expected.
Cd to test-structure/outer/dir
Create directory bbb - note that selection is not changed and cursor stays on same entry, new entry appears after some delay. Expected: as in 3: newly created item expected to be selected after creation.
Debugging notes:
It seems to me that the problem is that in tmp = get_cwd_entry(path, tmp, &len); ( file nnn.c line 7857 ), in get_cwd_entry in this case cwdpath will contain "symlinked" path (i.e. path via symlink) while entrypath will contain absolute (real) path to the entry being created. Because of this in this case entrypath is not considered as subpath of cwdpath.
The text was updated successfully, but these errors were encountered:
Environment details (Put
x
in the checkbox along with the information)Operating System:
Desktop Environment:
xmonad
Terminal Emulator:
xterm
Shell:
Custom desktop opener (if applicable):
Program options used: none
Configuration options set: default
Plugins are installed: None
Issue exists on
nnn
masterExact steps to reproduce the issue
Preparation:
Test directory structure:
script to spawn:
#!/bin/sh mkdir test-structure mkdir test-structure/{dir,outer} ln -s ../dir test-structure/outer
Reproducing:
nnn
test-structure/dir
aaa
andccc
- note each time directory is created,nnn
shifts selection so cursor points to newly created entry - this working as expected.test-structure/outer/dir
bbb
- note that selection is not changed and cursor stays on same entry, new entry appears after some delay. Expected: as in 3: newly created item expected to be selected after creation.Debugging notes:
It seems to me that the problem is that in
tmp = get_cwd_entry(path, tmp, &len);
( file nnn.c line 7857 ), inget_cwd_entry
in this casecwdpath
will contain "symlinked" path (i.e. path via symlink) whileentrypath
will contain absolute (real) path to the entry being created. Because of this in this caseentrypath
is not considered as subpath ofcwdpath
.The text was updated successfully, but these errors were encountered: