Don't allow the auto-completion code to look past the cursor position