Improve completion of functions and variables when prefix and part of the name are present.