]> Sergey Matveev's repositories - nnn.git/commit
Avoid trying to edit a non-existing file (#477)
author0xACE <0xACE@users.noreply.github.com>
Mon, 17 Feb 2020 22:21:46 +0000 (23:21 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 22:21:46 +0000 (03:51 +0530)
commit75f6d5d735ea50112aa9ba02864fda83da8def41
treea711e0e596f6ca61b85a454afdb6a00865addfba
parent9cf77708a1e1d9ec94afacd68847dcb6e98e1c27
Avoid trying to edit a non-existing file (#477)

The previous implementation was inconsistent, sometimes it would
inherit the name of the parent folder of the current directory.

Other scenarios i encountered were:
1. Yield a empty search result, and try to edit. It would seemingly
   randomly select a file or folder
2. What would happen in a root path without any files residing?
src/nnn.c