jshint fix
Bug fix for tab completion when there is text before the prefix.
Merge branch 'dev'