summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2018-07-20 13:49:36 +0300
committerFrank LENORMAND <lenormf@gmail.com>2018-07-20 13:49:36 +0300
commit60bd8df3c2810a08b2f7c74dee5738b2e3502e63 (patch)
treea522cfc4e029fdd4eb93f7dc05ea22e265d27cf7 /src
parentc58457a3c03c4f9ebd6db51e53720aac9655cd21 (diff)
src: Don't print a number for the development version
Diffstat (limited to 'src')
-rw-r--r--src/main.cc8
1 files 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;