Fix bug when inserting at top of file

When the gap in the buffer was at the start of the file, the draw
routine would draw the contents of the gap rather than the text being
inserted.  Until the gap was moved display would be incorrect.