From 60bd8df3c2810a08b2f7c74dee5738b2e3502e63 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 20 Jul 2018 13:49:36 +0300 Subject: [PATCH] src: Don't print a number for the development version --- src/main.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index a1cfbafd..064d2e77 100644 --- a/src/main.cc +++ b/src/main.cc @@ -40,10 +40,10 @@ namespace Kakoune extern const char* version; struct { - int version; + unsigned int version; const char* notes; } constexpr version_notes[] = { { - 99999999, + 0, "• Big breaking refactoring of various Kakoune features,\n" " configuration might need to be updated see `:doc changelog` for details\n" "• define-command -allow-override switch has been renamed -override\n" @@ -66,7 +66,9 @@ void show_startup_info(Client* local_client, int last_version) String info; for (auto note : version_notes) { - if (note.version > last_version) + if (not note.version) + info += format("● Development version\n{}\n", note.notes); + else if (note.version > last_version) { const auto year = note.version / 10000; const auto month = (note.version / 100) % 100;