aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-18 18:42:32 +0800
committerGitHub <noreply@github.com>2022-10-18 03:42:32 -0700
commit97164748b933a351423824b1988c863cc5994cdb (patch)
treef3e72fe8219e608023fdca79e3a212bedc474271
parent72b2353ab2f01ea96d7526c19f05571688d81e13 (diff)
downloadrneovim-97164748b933a351423824b1988c863cc5994cdb.tar.gz
rneovim-97164748b933a351423824b1988c863cc5994cdb.tar.bz2
rneovim-97164748b933a351423824b1988c863cc5994cdb.zip
fix(intro): omit patch version in ":help news" item #20713
Because maintenance releases share the same news.txt as the last non-maintenance release.
-rw-r--r--src/nvim/version.c4
-rw-r--r--test/functional/ui/messages_spec.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 32e15f200a..f0e2f92ba4 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -2228,8 +2228,8 @@ void intro_message(int colon)
N_("type :q<Enter> to exit "),
N_("type :help<Enter> for help "),
"",
- N_("type :help news<Enter> to see changes in")
- " v" STR(NVIM_VERSION_MAJOR) "." STR(NVIM_VERSION_MINOR) "." STR(NVIM_VERSION_PATCH),
+ N_("type :help news<Enter> to see changes in")
+ " v" STR(NVIM_VERSION_MAJOR) "." STR(NVIM_VERSION_MINOR),
"",
N_("Help poor children in Uganda!"),
N_("type :help iccf<Enter> for information "),
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 8ab25d0102..a042291b54 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -1273,7 +1273,7 @@ describe('ui/ext_messages', function()
{1:~ }type :q{5:<Enter>} to exit {1: }|
{1:~ }type :help{5:<Enter>} for help {1: }|
{1:~ }|
- {1:~ }type :help news{5:<Enter>} to see changes in v{MATCH:.*}|
+ {1:~ }type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}|
{1:~ }|
{MATCH:.*}|
{MATCH:.*}|
@@ -1329,7 +1329,7 @@ describe('ui/ext_messages', function()
type :q{5:<Enter>} to exit |
type :help{5:<Enter>} for help |
|
- type :help news{5:<Enter>} to see changes in {MATCH:.*}|
+ type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}|
|
{MATCH:.*}|
{MATCH:.*}|