Reset cursor before beginning reload sequence.

This commit is contained in:
Richard Heck 2017-10-03 17:21:21 -04:00
parent 23e67a3829
commit af381a2fb2

View File

@ -3173,6 +3173,7 @@ static bool ensureBufferClean(Buffer * buffer)
bool GuiView::reloadBuffer(Buffer & buf)
{
currentBufferView()->cursor().reset();
Buffer::ReadStatus status = buf.reload();
return status == Buffer::ReadSuccess;
}