Correct range-check for emacs support

Previously the last line would be thought to be out of range by
fsautocomplete
Merge pull request #571 from rneatherway/emacslastline

Correct range-check for emacs support