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 Mar 8, 2018
1 parent 9d3c77a commit 3a32e19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion haxor_news/haxor.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _create_cli(self):
enable_open_in_editor=True,
enable_system_prompt=True,
enable_suspend=True,
extra_key_bindings=self.key_manager.key_bindings)
key_bindings=self.key_manager.key_bindings)

def _add_comment_pagination(self, document_text):
"""Add the command to enable comment pagination where applicable.
Expand Down
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 3a32e19

Please sign in to comment.