Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 502b1bc

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

1 file changed

+4-2Lines changed: 4 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/cli.py‎

Copy file name to clipboardExpand all lines: bpython/cli.py
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.