comparison 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
comparison
equal deleted inserted replaced
25837:a4b393ed287e 25838:15fe946b1a41
336 if (after_pathsep(fname, fname + namelen)) 336 if (after_pathsep(fname, fname + namelen))
337 { 337 {
338 filemess(curbuf, fname, (char_u *)_(msg_is_a_directory), 0); 338 filemess(curbuf, fname, (char_u *)_(msg_is_a_directory), 0);
339 msg_end(); 339 msg_end();
340 msg_scroll = msg_save; 340 msg_scroll = msg_save;
341 return FAIL; 341 return NOTDONE;
342 } 342 }
343 } 343 }
344 344
345 if (!read_stdin && !read_buffer && !read_fifo) 345 if (!read_stdin && !read_buffer && !read_fifo)
346 { 346 {