Reset cursor before beginning reload sequence.

(cherry picked from commit af381a2fb2)
This commit is contained in:
Richard Heck 2017-10-03 17:21:21 -04:00
parent 11386f4601
commit da7f539358

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;
}