fixed get-token bug

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-06-11 00:00:25 -04:00
parent 4718ba3003
commit 675b40ad38
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class DumpAggregateTokenData(Method):
class GetToken(Method): class GetToken(Method):
'''View type and data of the "current" token''' '''View type and data of the "current" token'''
def _execute(self, w, **vargs): def _execute(self, w, **vargs):
if w.mode.name in w.buffer.highlights: if w.mode.name not in w.buffer.highlights:
w.set_error('No Token Data') w.set_error('No Token Data')
return return