aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-16 09:32:52 +0100
committerGitHub <noreply@github.com>2024-03-16 09:32:52 +0100
commit9c2fdfe6e7937e622a121dce42fde5aa602911a4 (patch)
treef29536d416df02ef63d91c9944989a8fde9de764 /src
parentc0549b9c4763bddeebccca6361027f87fb78eb83 (diff)
parentd1a30221fcb1307c59036ccddee0758395ceda4e (diff)
downloadrneovim-9c2fdfe6e7937e622a121dce42fde5aa602911a4.tar.gz
rneovim-9c2fdfe6e7937e622a121dce42fde5aa602911a4.tar.bz2
rneovim-9c2fdfe6e7937e622a121dce42fde5aa602911a4.zip
Merge pull request #27877 from bfredl/pseudorandom
fix(intro): redrawing intro exposing pseudo-randomness
Diffstat (limited to 'src')
-rw-r--r--src/nvim/version.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 27c3826cd2..d7f94fadae 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -2759,11 +2759,6 @@ void intro_message(bool colon)
blanklines = 0;
}
- // Show the sponsor and register message one out of four times, the Uganda
- // message two out of four times.
- int sponsor = (int)time(NULL);
- sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0);
-
// start displaying the message lines after half of the blank lines
int row = blanklines / 2;
@@ -2781,16 +2776,6 @@ void intro_message(bool colon)
mesg = xmallocz((size_t)mesg_size);
snprintf(mesg, (size_t)mesg_size + 1, p,
STR(NVIM_VERSION_MAJOR), STR(NVIM_VERSION_MINOR));
- } else if (sponsor != 0) {
- if (strstr(p, "children") != NULL) {
- p = sponsor < 0
- ? N_("Sponsor Vim development!")
- : N_("Become a registered Vim user!");
- } else if (strstr(p, "iccf") != NULL) {
- p = sponsor < 0
- ? N_("type :help sponsor<Enter> for information ")
- : N_("type :help register<Enter> for information ");
- }
}
if (mesg == NULL) {