From 144380de8c95e1e07b2056707c1c353e5df208e9 Mon Sep 17 00:00:00 2001 From: Masanori Ogino Date: Tue, 21 Jan 2020 14:25:13 +0900 Subject: [PATCH 2/2] Fix version comparison in show_startup_info. The description of startup_info_version in the manual says "only messages relating to a Kakoune version greater than this value will be displayed," but showed messages relating to the version equal to that value. This change aligns the code with the manual and makes a workaround that set startup_info_version next to the original version (ex. 20200117) unnecessary. Signed-off-by: Masanori Ogino --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index dabbb7b2..c95c5736 100644 --- a/src/main.cc +++ b/src/main.cc @@ -107,7 +107,7 @@ void show_startup_info(Client* local_client, int last_version) DisplayLineList info; for (auto note : version_notes) { - if (note.version and note.version < last_version) + if (note.version and note.version <= last_version) continue; if (not note.version)