aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-18 19:06:38 +0100
committerGitHub <noreply@github.com>2023-02-18 19:06:38 +0100
commitdb849517c613733fb2959d43e6d10d5d98d5033d (patch)
tree1fcdbbc5786f435eab2aae8528bce7fa634d1991
parent9301abdf748b54fa3d41375cc4659ca9f4b57dd8 (diff)
downloadrneovim-db849517c613733fb2959d43e6d10d5d98d5033d.tar.gz
rneovim-db849517c613733fb2959d43e6d10d5d98d5033d.tar.bz2
rneovim-db849517c613733fb2959d43e6d10d5d98d5033d.zip
fix: remove "Features" section from --version/:version (#22315)
Neovim doesn not have any optional features.
-rw-r--r--src/nvim/version.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 3324ac2a94..8ae43cb488 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -57,17 +57,6 @@ char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
# include "version.c.generated.h"
#endif
-static char *features[] = {
-#ifdef HAVE_ACL
- "+acl",
-#else
- "-acl",
-#endif
-
- "+tui",
- NULL
-};
-
// clang-format off
static const int included_patches[] = {
2424,
@@ -2619,21 +2608,6 @@ static void version_msg(char *s)
version_msg_wrap(s, false);
}
-/// List all features.
-/// This does not use list_in_columns (as in Vim), because there are only a
-/// few, and we do not start at a new line.
-static void list_features(void)
-{
- version_msg(_("\n\nFeatures: "));
- for (int i = 0; features[i] != NULL; i++) {
- version_msg(features[i]);
- if (features[i + 1] != NULL) {
- version_msg(" ");
- }
- }
- version_msg("\nSee \":help feature-compile\"\n\n");
-}
-
/// List string items nicely aligned in columns.
/// When "size" is < 0 then the last entry is marked with NULL.
/// The entry with index "current" is inclosed in [].
@@ -2742,7 +2716,7 @@ void list_version(void)
}
#endif // ifdef HAVE_PATHDEF
- list_features();
+ version_msg("\n\n");
#ifdef SYS_VIMRC_FILE
version_msg(_(" system vimrc file: \""));