diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-10 15:01:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 15:01:02 +0800 |
commit | 9e9322b222566c0f92bb6df034d9b316317c81d5 (patch) | |
tree | 8dc2885e2b65ac1eb4e973bc44face735b5c013f /src/nvim/fileio.c | |
parent | a7b1c8893c602196541e94b8b24c4c70c32c25b0 (diff) | |
parent | 05f643f9d235b0db881acf94ce05ad3359ffb058 (diff) | |
download | rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.tar.gz rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.tar.bz2 rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.zip |
Merge pull request #17653 from dundargoc/chore/lgtm
fix lgtm warnings
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index c5a89d3371..971ae9abae 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4961,9 +4961,8 @@ int buf_check_timestamp(buf_T *buf) buf_store_file_info(buf, &file_info); } - // Don't do anything for a directory. Might contain the file - // explorer. if (os_isdir(buf->b_fname)) { + // Don't do anything for a directory. Might contain the file explorer. } else if ((buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar) && !bufIsChanged(buf) && file_info_ok) { // If 'autoread' is set, the buffer has no changes and the file still |