mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-20 23:34:30 +03:00
browser: show a message when getcwd() fails, instead of just beeping
This commit is contained in:
parent
f9fe9a7d57
commit
9576eb62e6
@ -385,7 +385,12 @@ char *do_browse_from(const char *inpath)
|
||||
path = charalloc(PATH_MAX + 1);
|
||||
path = getcwd(path, PATH_MAX + 1);
|
||||
|
||||
if (path != NULL)
|
||||
if (path == NULL) {
|
||||
statusline(MILD, "The working directory has disappeared");
|
||||
beep();
|
||||
napms(1200);
|
||||
return NULL;
|
||||
} else
|
||||
align(&path);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user