Skip to content

Commit cf98ab5

Browse files
committed
Handle 'd' when mapping to colors (fixes #873)
1 parent 6442dea commit cf98ab5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bpython/curtsiesfrontend/parse.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33

44
from bpython.lazyre import LazyReCompile
55

6-
from curtsies.termformatconstants import FG_COLORS, BG_COLORS, colors
6+
import curtsies.termformatconstants
7+
from curtsies.termformatconstants import FG_COLORS, BG_COLORS
78
from curtsies.formatstring import fmtstr, FmtStr
89

910

10-
cnames = dict(zip("krgybmcwd", colors + ("default",)))
11+
colors = curtsies.termformatconstants.colors + ("default", )
12+
cnames = dict(zip("krgybmcwd", colors))
1113

1214

1315
def func_for_letter(l, default="k"):

0 commit comments

Comments
 (0)