commit 97164748b933a351423824b1988c863cc5994cdb
parent 72b2353ab2f01ea96d7526c19f05571688d81e13
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 18 Oct 2022 18:42:32 +0800
fix(intro): omit patch version in ":help news" item #20713
Because maintenance releases share the same news.txt as the last
non-maintenance release.
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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:.*}|