src: Change the bullet point symbols in the version notes

This commit is contained in:
Frank LENORMAND 2018-07-20 13:55:16 +03:00
parent 60bd8df3c2
commit a2f9c68a7c

View File

@ -44,21 +44,21 @@ struct {
const char* notes;
} constexpr version_notes[] = { {
0,
" Big breaking refactoring of various Kakoune features,\n"
"» 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"
"» define-command -allow-override switch has been renamed -override\n"
}, {
20180413,
" ModeChange hook has been introduced and is expected to replace\n"
"» ModeChange hook has been introduced and is expected to replace\n"
" the various ${MODE}Begin/${MODE}End hooks, consider those deprecated.\n"
" '*' Does not strip whitespaces anymore, use built-in '_' to strip them\n"
" 'l' on eol will go to next line, 'h' on first char will go to previous\n"
" selections merging behaviour is now a bit more complex again\n"
" 'x' will only jump to next line if full line is already selected\n"
" WORD text object moved to <a-w> instead of W for consistency\n"
" rotate main selection moved to ), rotate content to <a-)>, ( for backward\n"
" faces are now scoped, set-face command takes an additional scope parameter\n"
" <backtab> key is gone, use <s-tab> instead\n"
"» '*' Does not strip whitespaces anymore, use built-in '_' to strip them\n"
"» 'l' on eol will go to next line, 'h' on first char will go to previous\n"
"» selections merging behaviour is now a bit more complex again\n"
"» 'x' will only jump to next line if full line is already selected\n"
"» WORD text object moved to <a-w> instead of W for consistency\n"
"» rotate main selection moved to ), rotate content to <a-)>, ( for backward\n"
"» faces are now scoped, set-face command takes an additional scope parameter\n"
"» <backtab> key is gone, use <s-tab> instead\n"
} };
void show_startup_info(Client* local_client, int last_version)
@ -67,13 +67,13 @@ void show_startup_info(Client* local_client, int last_version)
for (auto note : version_notes)
{
if (not note.version)
info += format(" Development version\n{}\n", note.notes);
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;
const auto day = note.version % 100;
info += format(" Kakoune v{}.{}{}.{}{}\n{}\n",
info += format(" Kakoune v{}.{}{}.{}{}\n{}\n",
year, month < 10 ? "0" : "", month, day < 10 ? "0" : "", day, note.notes);
}
}