fixed suggestions if the cursor is not at the end of the line