mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
@@ -843,8 +843,7 @@ void ml_recover(void)
|
||||
mfp = mf_open(fname_used, O_RDONLY);
|
||||
fname_used = p;
|
||||
if (mfp == NULL || mfp->mf_fd < 0) {
|
||||
if (fname_used != NULL)
|
||||
EMSG2(_("E306: Cannot open %s"), fname_used);
|
||||
EMSG2(_("E306: Cannot open %s"), fname_used);
|
||||
goto theend;
|
||||
}
|
||||
buf->b_ml.ml_mfp = mfp;
|
||||
@@ -1297,18 +1296,14 @@ recover_names (
|
||||
msg_putchar('\n');
|
||||
}
|
||||
|
||||
/*
|
||||
* Do the loop for every directory in 'directory'.
|
||||
* First allocate some memory to put the directory name in.
|
||||
*/
|
||||
// Do the loop for every directory in 'directory'.
|
||||
// First allocate some memory to put the directory name in.
|
||||
dir_name = xmalloc(STRLEN(p_dir) + 1);
|
||||
dirp = p_dir;
|
||||
while (dir_name != NULL && *dirp) {
|
||||
/*
|
||||
* Isolate a directory name from *dirp and put it in dir_name (we know
|
||||
* it is large enough, so use 31000 for length).
|
||||
* Advance dirp to next directory name.
|
||||
*/
|
||||
while (*dirp) {
|
||||
// Isolate a directory name from *dirp and put it in dir_name (we know
|
||||
// it is large enough, so use 31000 for length).
|
||||
// Advance dirp to next directory name.
|
||||
(void)copy_option_part(&dirp, dir_name, 31000, ",");
|
||||
|
||||
if (dir_name[0] == '.' && dir_name[1] == NUL) { /* check current dir */
|
||||
|
Reference in New Issue
Block a user