aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index ba26381e23..36087ac59c 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -51,6 +51,7 @@
#include "nvim/os/input.h"
#include "nvim/os/time.h"
#include "nvim/event/stream.h"
+#include "nvim/buffer.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "misc1.c.generated.h"
@@ -1788,7 +1789,7 @@ void changed(void)
}
changed_int();
}
- ++curbuf->b_changedtick;
+ buf_set_changedtick(curbuf, curbuf->b_changedtick + 1);
}
/*
@@ -2147,7 +2148,7 @@ unchanged (
redraw_tabline = TRUE;
need_maketitle = TRUE; /* set window title later */
}
- ++buf->b_changedtick;
+ buf_set_changedtick(buf, buf->b_changedtick + 1);
}
/*
@@ -2223,7 +2224,7 @@ change_warning (
*
* return the 'y' or 'n'
*/
-int ask_yesno(char_u *str, int direct)
+int ask_yesno(const char *str, bool direct)
{
int r = ' ';
int save_State = State;
@@ -2545,7 +2546,7 @@ void vim_beep(unsigned val)
* function give the user a hint where the beep comes from. */
if (vim_strchr(p_debug, 'e') != NULL) {
msg_source(hl_attr(HLF_W));
- msg_attr((char_u *)_("Beep!"), hl_attr(HLF_W));
+ msg_attr(_("Beep!"), hl_attr(HLF_W));
}
}
}