diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-23 20:14:00 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | 15c7a8fda742cc393310d75e0e1be89c3042eac0 (patch) | |
tree | 47a98f3d51cc7006d0cf8a8dfbc3fc8206064227 /src/commands | |
parent | 486ca3846b46dc229e5807968578809766ec1991 (diff) |
fix: resolve statusline overlap bug
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/toggle_pause.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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())); } |