diff options
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 38ac3b7bcf..25c2de89e0 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -3347,7 +3347,7 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname, bool *found_ if (!recoverymode && buf_fname != NULL && !buf->b_help && !(buf->b_flags & BF_DUMMY)) { int fd; ZeroBlock b0; - int differ = false; + bool differ = false; // Try to read block 0 from the swapfile to get the original file name (and inode number). fd = os_open(fname, O_RDONLY, 0); @@ -3386,7 +3386,7 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname, bool *found_ // Show the ATTENTION message when: // - there is an old swapfile for the current file // - the buffer was not recovered - if (differ == false && !(curbuf->b_flags & BF_RECOVERED) + if (!differ && !(curbuf->b_flags & BF_RECOVERED) && vim_strchr(p_shm, SHM_ATTENTION) == NULL) { sea_choice_T choice = SEA_CHOICE_NONE; |