From 15c7a8fda742cc393310d75e0e1be89c3042eac0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 23 Mar 2022 20:14:00 +0100 Subject: fix: resolve statusline overlap bug --- src/commands/toggle_pause.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/commands') diff --git a/src/commands/toggle_pause.cpp b/src/commands/toggle_pause.cpp index 8a3f44c..d978bc6 100644 --- a/src/commands/toggle_pause.cpp +++ b/src/commands/toggle_pause.cpp @@ -17,6 +17,9 @@ void TogglePauseCommand::execute() noexcept _generation_tracker->set_is_paused(onoff); - _statusline->set_status(StatusLineSection::B, - fmt::format("Paused: {}", onoff ? "yes" : "no")); + _statusline->set_status( + StatusLineSection::B, + fmt::format("Paused: {} Generation: {}", + _generation_tracker->get_is_paused() ? "yes" : "no", + _generation_tracker->get_current_generation())); } -- cgit v1.2.3-18-g5258