mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor: use bool
to represent boolean values
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user