mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor(message): smsg_attr -> smsg
This commit is contained in:
@@ -353,9 +353,9 @@ int do_in_path(const char *path, const char *prefix, char *name, int flags,
|
||||
if (p_verbose > 10 && name != NULL) {
|
||||
verbose_enter();
|
||||
if (*prefix != NUL) {
|
||||
smsg(_("Searching for \"%s\" under \"%s\" in \"%s\""), name, prefix, path);
|
||||
smsg(0, _("Searching for \"%s\" under \"%s\" in \"%s\""), name, prefix, path);
|
||||
} else {
|
||||
smsg(_("Searching for \"%s\" in \"%s\""), name, path);
|
||||
smsg(0, _("Searching for \"%s\" in \"%s\""), name, path);
|
||||
}
|
||||
verbose_leave();
|
||||
}
|
||||
@@ -396,7 +396,7 @@ int do_in_path(const char *path, const char *prefix, char *name, int flags,
|
||||
|
||||
if (p_verbose > 10) {
|
||||
verbose_enter();
|
||||
smsg(_("Searching for \"%s\""), buf);
|
||||
smsg(0, _("Searching for \"%s\""), buf);
|
||||
verbose_leave();
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ int do_in_path(const char *path, const char *prefix, char *name, int flags,
|
||||
semsg(_(e_dirnotf), basepath, name);
|
||||
} else if (p_verbose > 1) {
|
||||
verbose_enter();
|
||||
smsg(_("not found in '%s': \"%s\""), basepath, name);
|
||||
smsg(0, _("not found in '%s': \"%s\""), basepath, name);
|
||||
verbose_leave();
|
||||
}
|
||||
}
|
||||
@@ -481,7 +481,7 @@ int do_in_cached_path(char *name, int flags, DoInRuntimepathCB callback, void *c
|
||||
|
||||
if (p_verbose > 10 && name != NULL) {
|
||||
verbose_enter();
|
||||
smsg(_("Searching for \"%s\" in runtime path"), name);
|
||||
smsg(0, _("Searching for \"%s\" in runtime path"), name);
|
||||
verbose_leave();
|
||||
}
|
||||
|
||||
@@ -520,7 +520,7 @@ int do_in_cached_path(char *name, int flags, DoInRuntimepathCB callback, void *c
|
||||
|
||||
if (p_verbose > 10) {
|
||||
verbose_enter();
|
||||
smsg(_("Searching for \"%s\""), buf);
|
||||
smsg(0, _("Searching for \"%s\""), buf);
|
||||
verbose_leave();
|
||||
}
|
||||
|
||||
@@ -540,7 +540,7 @@ int do_in_cached_path(char *name, int flags, DoInRuntimepathCB callback, void *c
|
||||
semsg(_(e_dirnotf), "runtime path", name);
|
||||
} else if (p_verbose > 1) {
|
||||
verbose_enter();
|
||||
smsg(_("not found in runtime path: \"%s\""), name);
|
||||
smsg(0, _("not found in runtime path: \"%s\""), name);
|
||||
verbose_leave();
|
||||
}
|
||||
}
|
||||
@@ -2047,7 +2047,7 @@ int do_source(char *fname, int check_other, int is_vimrc, int *ret_sid)
|
||||
return retval;
|
||||
}
|
||||
if (os_isdir(fname_exp)) {
|
||||
smsg(_("Cannot source a directory: \"%s\""), fname);
|
||||
smsg(0, _("Cannot source a directory: \"%s\""), fname);
|
||||
goto theend;
|
||||
}
|
||||
|
||||
@@ -2091,9 +2091,9 @@ int do_source(char *fname, int check_other, int is_vimrc, int *ret_sid)
|
||||
if (p_verbose > 1) {
|
||||
verbose_enter();
|
||||
if (SOURCING_NAME == NULL) {
|
||||
smsg(_("could not source \"%s\""), fname);
|
||||
smsg(0, _("could not source \"%s\""), fname);
|
||||
} else {
|
||||
smsg(_("line %" PRId64 ": could not source \"%s\""),
|
||||
smsg(0, _("line %" PRId64 ": could not source \"%s\""),
|
||||
(int64_t)SOURCING_LNUM, fname);
|
||||
}
|
||||
verbose_leave();
|
||||
@@ -2107,9 +2107,9 @@ int do_source(char *fname, int check_other, int is_vimrc, int *ret_sid)
|
||||
if (p_verbose > 1) {
|
||||
verbose_enter();
|
||||
if (SOURCING_NAME == NULL) {
|
||||
smsg(_("sourcing \"%s\""), fname);
|
||||
smsg(0, _("sourcing \"%s\""), fname);
|
||||
} else {
|
||||
smsg(_("line %" PRId64 ": sourcing \"%s\""), (int64_t)SOURCING_LNUM, fname);
|
||||
smsg(0, _("line %" PRId64 ": sourcing \"%s\""), (int64_t)SOURCING_LNUM, fname);
|
||||
}
|
||||
verbose_leave();
|
||||
}
|
||||
@@ -2242,9 +2242,9 @@ int do_source(char *fname, int check_other, int is_vimrc, int *ret_sid)
|
||||
estack_pop();
|
||||
if (p_verbose > 1) {
|
||||
verbose_enter();
|
||||
smsg(_("finished sourcing %s"), fname);
|
||||
smsg(0, _("finished sourcing %s"), fname);
|
||||
if (SOURCING_NAME != NULL) {
|
||||
smsg(_("continuing in %s"), SOURCING_NAME);
|
||||
smsg(0, _("continuing in %s"), SOURCING_NAME);
|
||||
}
|
||||
verbose_leave();
|
||||
}
|
||||
|
Reference in New Issue
Block a user