Skip to content

Commit

Permalink
A few small changes for being compatible with the latest prompt_toolk…
Browse files Browse the repository at this point in the history
…it 2.0
  • Loading branch information
jonathanslenders committed Jan 31, 2018
1 parent 9d3c77a commit 66ab823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haxor_news/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from pygments.token import Token
from pygments.util import ClassNotFound
from prompt_toolkit.styles.pygments import style_from_pygments_dict, style_from_pygments
from prompt_toolkit.styles.pygments import style_from_pygments_dict, style_from_pygments_cls
from prompt_toolkit.styles import merge_styles
import pygments.styles

Expand Down Expand Up @@ -48,7 +48,7 @@ def style_factory(self, name):

# Create styles dictionary.
return merge_styles([
style_from_pygments(pygments_style),
style_from_pygments_cls(pygments_style),
style_from_pygments_dict({
Token.Menu.Completions.Completion.Current: 'bg:#00aaaa #000000',
Token.Menu.Completions.Completion: 'bg:#008888 #ffffff',
Expand Down

0 comments on commit 66ab823

Please sign in to comment.