]> Sergey Matveev's repositories - nnn.git/commit
When handling bookmark, use readlink, not realpath
authorme <email>
Tue, 21 Nov 2023 17:52:38 +0000 (20:52 +0300)
committerme <email>
Wed, 22 Nov 2023 17:41:49 +0000 (20:41 +0300)
commit9aaf9491ad6a144ad096bcde9a5605c628c83e42
tree0ba254b8556a23b8c3ef49b3b223e9aefc0d5bcb
parent485079d3ec20ecba08fc964d2947fcd612f4c09f
When handling bookmark, use readlink, not realpath

This is to cd to path as it pointed by symlink, not to it's real path. Bookmarked directory may itself contain symlinks in path, which should be respected.

For example: if directory is physically in /mnt/storage/some and it's symlinked to ~/some and directory ~/some/dir added to bookmarks, it's expected that when following bookmark directory will be changed to ~/some/dir (as in bookmark's link) not to /mnt/storage/some/dir (as dir real path).
src/nnn.c