aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/memline.c6
-rw-r--r--src/nvim/undo.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 23f223fcac..e341ba0427 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1623,7 +1623,7 @@ static time_t swapfile_unchanged(char *fname)
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?
close(fd);
@@ -3446,8 +3446,8 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname,
// response, trigger it. It may return 0 to ask the user anyway.
if (choice == 0
&& swap_exists_action != SEA_NONE
- && has_autocmd(EVENT_SWAPEXISTS, (char_u *) buf_fname, buf)) {
- choice = do_swapexists(buf, (char_u *) fname);
+ && has_autocmd(EVENT_SWAPEXISTS, (char_u *)buf_fname, buf)) {
+ choice = do_swapexists(buf, (char_u *)fname);
}
if (choice == 0) {
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index c531a488bc..f5ee0ece8d 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -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
* existing undo file. */
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"));
+ }
goto theend;
}