Show the escape key properly when server unavailable.

Fixes #624.

Signed-off-by: John Hood <cgull@glup.org>
This commit is contained in:
John Hood
2015-06-08 21:57:08 -04:00
parent 39c8b04c97
commit fc80eaaecf
3 changed files with 10 additions and 2 deletions
+1 -2
View File
@@ -233,10 +233,9 @@ void NotificationEngine::apply( Framebuffer &fb ) const
explanation = reply_message;
}
const static char quit_keystroke[] = " [To quit: Ctrl-^ .]";
const static char blank[] = "";
const char *keystroke_str = show_quit_keystroke ? quit_keystroke : blank;
const char *keystroke_str = show_quit_keystroke ? escape_key_string.c_str() : blank;
if ( message.empty() && (!time_expired) ) {
return;