This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Don't attempt to go back if on the relative root
master
lostd
10 years ago
parent
8d4019f3aa
commit
9407399230
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
noice.c
+ 3
- 1
noice.c
View File
@@ -658,7 +658,9 @@ nochange:
return;
case SEL_BACK:
/* There is no going back */
if (strcmp(path, "/") == 0)
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
printwarn();
Write
Preview
Loading…
Cancel
Save