From 34c12a7b781fdbe69371b013dc93991429471c9f Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 2 Oct 2021 18:25:01 -0400 Subject: [PATCH] Context: Add news.version among configuration defaults Otherwise news.version shows up as unrecognized variable. --- src/Context.cpp | 1 + src/commands/CmdShow.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Context.cpp b/src/Context.cpp index 2ab237e28..37daa97b4 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -115,6 +115,7 @@ std::string configurationDefaults = "expressions=infix # Prefer infix over postfix expressions\n" "json.array=1 # Enclose JSON output in [ ]\n" "abbreviation.minimum=2 # Shortest allowed abbreviation\n" + "news.version= # Latest version higlights read by the user\n" "\n" "# Dates\n" "dateformat=Y-M-D # Preferred input and display date format\n" diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index b58aebc80..bc3e059f5 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -177,6 +177,7 @@ int CmdShow::execute (std::string& output) " list.all.tags" " locking" " nag" + " news.version" " obfuscate" " print.empty.columns" " recurrence"