Skip to content

Commit 502b1bc

Browse files
committed
A quick fix for the config global being removed and causing problems for the statusbar.
1 parent 893bd42 commit 502b1bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bpython/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,11 +1239,13 @@ class Statusbar(object):
12391239
12401240
"""
12411241

1242-
def __init__(self, scr, pwin, background, s=None, c=None):
1242+
def __init__(self, scr, pwin, background, config, s=None, c=None):
12431243
"""Initialise the statusbar and display the initial text (if any)"""
12441244
self.size()
12451245
self.win = newwin(background, self.h, self.w, self.y, self.x)
12461246

1247+
self.config = config
1248+
12471249
self.s = s or ''
12481250
self._s = self.s
12491251
self.c = c
@@ -1382,7 +1384,7 @@ def init_wins(scr, colors, config):
13821384
#
13831385
# This should show to be configured keys from ~/.bpython/config
13841386
#
1385-
statusbar = Statusbar(scr, main_win, background,
1387+
statusbar = Statusbar(scr, main_win, background, config,
13861388
" <%s> Rewind <%s> Save <%s> Pastebin <%s> Pager <%s> Show Source " %
13871389
(config.undo_key, config.save_key,
13881390
config.pastebin_key, config.last_output_key,

0 commit comments

Comments
 (0)