mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
version.c: Clean up --version / :version output
Despite the +/- prefix, the majority of these features have been made non-optional at compile time, so their presence here is misleading. Also mention `:h vim-differences` to make it clear our that many features are non-optional.
This commit is contained in:
@@ -43,45 +43,14 @@ char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
|
|||||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
# include "version.c.generated.h"
|
# include "version.c.generated.h"
|
||||||
#endif
|
#endif
|
||||||
static char *(features[]) = {
|
|
||||||
|
static char *features[] = {
|
||||||
#ifdef HAVE_ACL
|
#ifdef HAVE_ACL
|
||||||
"+acl",
|
"+acl",
|
||||||
#else // ifdef HAVE_ACL
|
#else // ifdef HAVE_ACL
|
||||||
"-acl",
|
"-acl",
|
||||||
#endif // ifdef HAVE_ACL
|
#endif // ifdef HAVE_ACL
|
||||||
"+arabic",
|
|
||||||
"+autocmd",
|
|
||||||
"-browse",
|
|
||||||
"+byte_offset",
|
|
||||||
"+cindent",
|
|
||||||
"-clipboard",
|
|
||||||
"+cmdline_compl",
|
|
||||||
"+cmdline_hist",
|
|
||||||
"+cmdline_info",
|
|
||||||
"+comments",
|
|
||||||
"+conceal",
|
|
||||||
"+cscope",
|
|
||||||
"+cursorbind",
|
|
||||||
"+cursorshape",
|
|
||||||
"+dialog_con",
|
|
||||||
"+digraphs",
|
|
||||||
"-dnd",
|
|
||||||
"-ebcdic",
|
|
||||||
"-emacs_tags",
|
|
||||||
"+eval",
|
|
||||||
"+ex_extra",
|
|
||||||
"+extra_search",
|
|
||||||
"+farsi",
|
|
||||||
"+file_in_path",
|
|
||||||
"+find_in_path",
|
|
||||||
"+folding",
|
|
||||||
"-footer",
|
|
||||||
|
|
||||||
// only interesting on Unix systems
|
|
||||||
#if defined(UNIX)
|
|
||||||
"+fork()",
|
|
||||||
#endif // if defined(UNIX)
|
|
||||||
"+gettext",
|
|
||||||
#if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV)
|
#if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV)
|
||||||
# ifdef DYNAMIC_ICONV
|
# ifdef DYNAMIC_ICONV
|
||||||
"+iconv/dyn",
|
"+iconv/dyn",
|
||||||
@@ -93,77 +62,6 @@ static char *(features[]) = {
|
|||||||
"-iconv",
|
"-iconv",
|
||||||
#endif // if (defined(HAVE_ICONV_H) && defined(USE_ICONV))
|
#endif // if (defined(HAVE_ICONV_H) && defined(USE_ICONV))
|
||||||
// || defined(DYNAMIC_ICONV)
|
// || defined(DYNAMIC_ICONV)
|
||||||
"+insert_expand",
|
|
||||||
"+jumplist",
|
|
||||||
"+keymap",
|
|
||||||
"+langmap",
|
|
||||||
"+libcall",
|
|
||||||
"+linebreak",
|
|
||||||
"+lispindent",
|
|
||||||
"+listcmds",
|
|
||||||
"+localmap",
|
|
||||||
"+menu",
|
|
||||||
"+mksession",
|
|
||||||
"+modify_fname",
|
|
||||||
"+mouse",
|
|
||||||
"-mouseshape",
|
|
||||||
|
|
||||||
#if defined(UNIX)
|
|
||||||
"+mouse_dec",
|
|
||||||
"-mouse_gpm",
|
|
||||||
"+mouse_netterm",
|
|
||||||
#endif // if defined(UNIX)
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(UNIX)
|
|
||||||
"+mouse_sgr",
|
|
||||||
"-mouse_sysmouse",
|
|
||||||
"+mouse_urxvt",
|
|
||||||
"+mouse_xterm",
|
|
||||||
#endif // if defined(UNIX)
|
|
||||||
|
|
||||||
"+multi_byte",
|
|
||||||
"+multi_lang",
|
|
||||||
"+path_extra",
|
|
||||||
"+persistent_undo",
|
|
||||||
"+postscript",
|
|
||||||
"+printer",
|
|
||||||
"+profile",
|
|
||||||
"+quickfix",
|
|
||||||
"+reltime",
|
|
||||||
"+rightleft",
|
|
||||||
"+scrollbind",
|
|
||||||
"+signs",
|
|
||||||
"+smartindent",
|
|
||||||
"+startuptime",
|
|
||||||
"+statusline",
|
|
||||||
"+syntax",
|
|
||||||
"+tag_binary",
|
|
||||||
"+tag_old_static",
|
|
||||||
"-tag_any_white",
|
|
||||||
"+termresponse",
|
|
||||||
"+textobjects",
|
|
||||||
"+title",
|
|
||||||
"-toolbar",
|
|
||||||
"+user_commands",
|
|
||||||
"+vertsplit",
|
|
||||||
"+virtualedit",
|
|
||||||
"+visual",
|
|
||||||
"+visualextra",
|
|
||||||
"+viminfo",
|
|
||||||
"+vreplace",
|
|
||||||
"+wildignore",
|
|
||||||
"+wildmenu",
|
|
||||||
"+windows",
|
|
||||||
"+writebackup",
|
|
||||||
#if defined(UNIX)
|
|
||||||
"-X11",
|
|
||||||
#endif // if defined(UNIX)
|
|
||||||
"-xfontset",
|
|
||||||
#if defined(UNIX)
|
|
||||||
"-xsmp",
|
|
||||||
"-xterm_clipboard",
|
|
||||||
#endif // if defined(UNIX)
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -926,6 +824,7 @@ static void list_features(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MSG_PUTS("For differences from Vim, see :help vim-differences\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void list_version(void)
|
void list_version(void)
|
||||||
@@ -967,7 +866,7 @@ void list_version(void)
|
|||||||
}
|
}
|
||||||
#endif // ifdef HAVE_PATHDEF
|
#endif // ifdef HAVE_PATHDEF
|
||||||
|
|
||||||
version_msg(_(" Features included (+) or not (-):\n"));
|
version_msg(_("\n\nOptional features included (+) or not (-): "));
|
||||||
|
|
||||||
list_features();
|
list_features();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user