aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5001ba2..3af9347 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -964,11 +964,11 @@ static char *common_prefix(const char *path, char *prefix)
while (*x && *y && (*x == *y))
++x, ++y;
- /* Strings are same OR prefix is smaller */
+ /* Strings are same OR prefix is shorter */
if ((!*x && !*y) || !*y)
return prefix;
- /* Path is smaller */
+ /* Path is shorter */
if (!*x) {
xstrlcpy(prefix, path, path - x + 1);
return prefix;
@@ -6219,7 +6219,7 @@ static char *load_input()
DPRINTF_S(paths[0]);
for (i = 0; i < entries; ++i) {
- if (selforparent(paths[i])) {
+ if (paths[i][0] == '\n' || selforparent(paths[i])) {
paths[i] = NULL;
continue;
}