Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add news blurb to intro text #20674

Merged
merged 1 commit into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: add news blurb to intro text
  • Loading branch information
gpanders committed Oct 16, 2022
commit 6281578802fd476c6dd2f17b641aa2c67bf25b61
3 changes: 3 additions & 0 deletions src/nvim/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,9 @@ 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_("Help poor children in Uganda!"),
N_("type :help iccf<Enter> for information "),
};
Expand Down
8 changes: 4 additions & 4 deletions test/functional/ui/messages_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,6 @@ describe('ui/ext_messages', function()
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{MATCH:.*}|
{1:~ }|
{1:~ }Nvim is open source and freely distributable{1: }|
Expand All @@ -1274,14 +1273,15 @@ 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:~ }|
{MATCH:.*}|
{MATCH:.*}|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
]])

feed("<c-l>")
Expand Down Expand Up @@ -1319,7 +1319,6 @@ describe('ui/ext_messages', function()
|
|
|
|
{MATCH:.*}|
|
Nvim is open source and freely distributable |
Expand All @@ -1330,14 +1329,15 @@ 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:.*}|
|
{MATCH:.*}|
{MATCH:.*}|
|
|
|
|
|
|
]], messages={
{content = { { "Press ENTER or type command to continue", 4 } }, kind = "return_prompt" }
}}
Expand Down