Correct range-check for emacs support

Previously the last line would be thought to be out of range by
fsautocomplete