Skip to content

Commit 70fd452

Browse files
display statusbar at appropriate times in non-fullscreen mode
--HG-- branch : scroll-frontend
1 parent 015651c commit 70fd452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/scrollfrontend/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __init__(self, locals_=None, config=None, stuff_a_refresh_request=lambda: No
139139
if config.cli_suggestion_width <= 0 or config.cli_suggestion_width > 1:
140140
config.cli_suggestion_width = 1
141141

142-
self.status_bar = StatusBar(banner, _(
142+
self.status_bar = StatusBar(banner if config.scroll_fill_terminal else '', _(
143143
" <%s> Rewind <%s> Save <%s> Pastebin <%s> Editor"
144144
) % (config.undo_key, config.save_key, config.pastebin_key, config.external_editor_key))
145145
self.rl_char_sequences = get_updated_char_sequences(key_dispatch, config)
@@ -604,7 +604,7 @@ def paint(self, about_to_exit=False):
604604
self.clean_up_current_line_for_exit() # exception to not changing state!
605605

606606
width, min_height = self.width, self.height
607-
show_status_bar = bool(self.status_bar.current_line) and (self.config.scroll_fill_terminal or self.status_bar.has_focus)
607+
show_status_bar = bool(self.status_bar._message) or (self.config.scroll_fill_terminal or self.status_bar.has_focus)
608608
if show_status_bar:
609609
min_height -= 1
610610

0 commit comments

Comments
 (0)