diff src/fileio.c @ 25838:15fe946b1a41 v8.2.3453

patch 8.2.3453: autocmd not executed when editing a directory Commit: https://github.com/vim/vim/commit/40fa12aea352474d229f2f750e954a4318aead4e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 22 14:18:13 2021 +0200 patch 8.2.3453: autocmd not executed when editing a directory Problem: Autocmd not executed when editing a directory ending in a path separator inside try block. Solution: Return NOTDONE instead of FAIL. (closes #8885)
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Sep 2021 14:30:05 +0200
parents c094a29722bb
children d7e1cf30728c
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -338,7 +338,7 @@ readfile(
 	    filemess(curbuf, fname, (char_u *)_(msg_is_a_directory), 0);
 	    msg_end();
 	    msg_scroll = msg_save;
-	    return FAIL;
+	    return NOTDONE;
 	}
     }