CmdNews: Prevent double outro by reverting to defautl signal handler
This commit is contained in:
@@ -590,6 +590,9 @@ int CmdNews::execute (std::string& output)
|
|||||||
{
|
{
|
||||||
CmdConfig::setConfigVariable ("news.version", "2.6.0", false);
|
CmdConfig::setConfigVariable ("news.version", "2.6.0", false);
|
||||||
|
|
||||||
|
// Revert back to default signal handling after displaying the outro
|
||||||
|
signal (SIGINT, SIG_DFL);
|
||||||
|
|
||||||
std::string question = format (
|
std::string question = format (
|
||||||
"\nWould you like to open Taskwarrior {1} fundraising campaign to read more?",
|
"\nWould you like to open Taskwarrior {1} fundraising campaign to read more?",
|
||||||
now.year ()
|
now.year ()
|
||||||
|
|||||||
Reference in New Issue
Block a user