mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
lint
This commit is contained in:
@@ -1623,7 +1623,7 @@ static time_t swapfile_unchanged(char *fname)
|
|||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Should we check if the swap file was created on the current
|
// TODO(bram): Should we check if the swap file was created on the current
|
||||||
// system? And the current user?
|
// system? And the current user?
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
@@ -1131,8 +1131,9 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
|
|||||||
/* If there is no undo information at all, quit here after deleting any
|
/* If there is no undo information at all, quit here after deleting any
|
||||||
* existing undo file. */
|
* existing undo file. */
|
||||||
if (buf->b_u_numhead == 0 && buf->b_u_line_ptr == NULL) {
|
if (buf->b_u_numhead == 0 && buf->b_u_line_ptr == NULL) {
|
||||||
if (p_verbose > 0)
|
if (p_verbose > 0) {
|
||||||
verb_msg(_("Skipping undo file write, nothing to undo"));
|
verb_msg(_("Skipping undo file write, nothing to undo"));
|
||||||
|
}
|
||||||
goto theend;
|
goto theend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user