summaryrefslogtreecommitdiff
path: root/src/help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.cpp')
-rw-r--r--src/help.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/help.cpp b/src/help.cpp
index 9d02374c..ee292d5a 100644
--- a/src/help.cpp
+++ b/src/help.cpp
@@ -35,6 +35,7 @@ void Help::Init()
w->SetTimeout(ncmpcpp_window_timeout);
GetKeybindings();
w->Flush();
+ isInitialized = 1;
}
void Help::Resize()
@@ -48,6 +49,9 @@ void Help::SwitchTo()
if (myScreen == this)
return;
+ if (!isInitialized)
+ Init();
+
if (hasToBeResized)
Resize();