better handling of token under cursor

fixes one-more-minute/Jewel#45
fixes one-more-minute/Jupiter-LT#5