Fixes completion prefixed by ~

Fixes #111.