mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Strip redundant spaces
This commit is contained in:
parent
0b0869ab44
commit
973aff99b7
6
noice.c
6
noice.c
|
@ -223,7 +223,7 @@ begin:
|
||||||
cur = 0;
|
cur = 0;
|
||||||
dents = NULL;
|
dents = NULL;
|
||||||
|
|
||||||
dirp = opendir(path);
|
dirp = opendir(path);
|
||||||
if (dirp == NULL) {
|
if (dirp == NULL) {
|
||||||
printwarn();
|
printwarn();
|
||||||
goto nochange;
|
goto nochange;
|
||||||
|
@ -365,7 +365,7 @@ nochange:
|
||||||
path = pathnew;
|
path = pathnew;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* Regular file */
|
/* Regular file */
|
||||||
if (S_ISREG(sb.st_mode)) {
|
if (S_ISREG(sb.st_mode)) {
|
||||||
/* Open with */
|
/* Open with */
|
||||||
bin = openwith(name);
|
bin = openwith(name);
|
||||||
|
@ -399,7 +399,7 @@ nochange:
|
||||||
out:
|
out:
|
||||||
free(dents);
|
free(dents);
|
||||||
|
|
||||||
r = closedir(dirp);
|
r = closedir(dirp);
|
||||||
if (r == -1)
|
if (r == -1)
|
||||||
printerr(1, "closedir");
|
printerr(1, "closedir");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue