mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
diff kitten: Fix spurious traceback on exit when pygments is missing
Fixes #863
This commit is contained in:
@@ -32,7 +32,7 @@ from .search import BadRegex, Search
|
|||||||
try:
|
try:
|
||||||
from .highlight import initialize_highlighter, highlight_collection
|
from .highlight import initialize_highlighter, highlight_collection
|
||||||
except ImportError:
|
except ImportError:
|
||||||
initialize_highlighter = None
|
initialize_highlighter = highlight_collection = None
|
||||||
|
|
||||||
|
|
||||||
INITIALIZING, COLLECTED, DIFFED, COMMAND, MESSAGE = range(5)
|
INITIALIZING, COLLECTED, DIFFED, COMMAND, MESSAGE = range(5)
|
||||||
|
|||||||
Reference in New Issue
Block a user