AQL Editor: Query only on selected text if a selection exists.
Merge pull request #949 from clintwood/aql-qry-selection

AQL Editor: Query only on selected text if a selection exists.

Thanks for the fix.