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 8631fa68a5
commit 6d11663090

View File

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