Skip to content

Fix 767 by using correct function #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix 767 by using correct function
  • Loading branch information
thomasballinger committed Mar 3, 2019
commit 7bf56a99a5e9f8fb87f56b1a15f748afc7c36e70
4 changes: 2 additions & 2 deletions bpython/curtsiesfrontend/replpainter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import itertools
from six.moves import range

from curtsies import fsarray, fmtstr
from curtsies import fsarray, fmtstr, FSArray
from curtsies.formatstring import linesplit
from curtsies.fmtfuncs import bold

Expand Down Expand Up @@ -178,7 +178,7 @@ def paint_infobox(rows, columns, matches, funcprops, arg_pos, match, docstring,
config, match_format):
"""Returns painted completions, funcprops, match, docstring etc."""
if not (rows and columns):
return fsarray(0, 0)
return FSArray(0, 0)
width = columns - 4
from_argspec = (formatted_argspec(funcprops, arg_pos, width, config)
if funcprops else [])
Expand Down