diff --git a/method/introspect.py b/method/introspect.py index ee4dde5..2778f5f 100644 --- a/method/introspect.py +++ b/method/introspect.py @@ -91,6 +91,10 @@ class DumpAggregateTokenData(Method): class GetToken(Method): '''View type and data of the "current" token''' def _execute(self, w, **vargs): + if w.mode.name in w.buffer.highlights: + w.set_error('No Token Data') + return + token = w.get_token() if token is None: w.set_error('No Token')