Fix #376.  Fix issue editing visual mode at the end of a file.