mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
refactor(messages): fold msg_attr into msg
problem: there are too many different functions in message.c solution: fold some of the functions into themselves
This commit is contained in:
@@ -2691,19 +2691,19 @@ void list_lua_version(void)
|
||||
Object ret = nlua_exec(cstr_as_string(code), (Array)ARRAY_DICT_INIT, &err);
|
||||
assert(!ERROR_SET(&err));
|
||||
assert(ret.type == kObjectTypeString);
|
||||
msg(ret.data.string.data);
|
||||
msg(ret.data.string.data, 0);
|
||||
api_free_object(ret);
|
||||
}
|
||||
|
||||
void list_version(void)
|
||||
{
|
||||
msg(longVersion);
|
||||
msg(version_buildtype);
|
||||
msg(longVersion, 0);
|
||||
msg(version_buildtype, 0);
|
||||
list_lua_version();
|
||||
|
||||
if (p_verbose > 0) {
|
||||
#ifndef NDEBUG
|
||||
msg(version_cflags);
|
||||
msg(version_cflags, 0);
|
||||
#endif
|
||||
version_msg("\n\n");
|
||||
|
||||
|
Reference in New Issue
Block a user