aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/eval/typval.h2
-rw-r--r--src/nvim/spellfile.c7
-rw-r--r--src/nvim/undo.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h
index 02d241f6f5..008453b87f 100644
--- a/src/nvim/eval/typval.h
+++ b/src/nvim/eval/typval.h
@@ -798,7 +798,7 @@ static inline bool tv_get_float_chk(const typval_T *const tv,
*ret_f = (float_T)tv->vval.v_number;
return true;
}
- emsgf(_("E808: Number or Float required"));
+ emsgf("%s", _("E808: Number or Float required"));
return false;
}
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index 8e4f405d99..14abfda9ff 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -625,7 +625,7 @@ spell_load_file (
switch (scms_ret) {
case SP_FORMERROR:
case SP_TRUNCERROR: {
- emsgf(_("E757: This does not look like a spell file"));
+ emsgf("%s", _("E757: This does not look like a spell file"));
goto endFAIL;
}
case SP_OTHERERROR: {
@@ -2654,8 +2654,9 @@ static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname)
}
if (compsylmax != 0) {
- if (syllable == NULL)
- smsg(_("COMPOUNDSYLMAX used without SYLLABLE"));
+ if (syllable == NULL) {
+ smsg("%s", _("COMPOUNDSYLMAX used without SYLLABLE"));
+ }
aff_check_number(spin->si_compsylmax, compsylmax, "COMPOUNDSYLMAX");
spin->si_compsylmax = compsylmax;
}
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 539d42765d..980399a3ef 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1057,7 +1057,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
if (file_name == NULL) {
if (p_verbose > 0) {
verbose_enter();
- smsg(_("Cannot write undo file in any directory in 'undodir'"));
+ smsg("%s", _("Cannot write undo file in any directory in 'undodir'"));
verbose_leave();
}
return;