commit af381a2fb25df71b43668fa46ba9b6395f266751
Author: Richard Heck <rgh...@lyx.org>
Date:   Tue Oct 3 17:21:21 2017 -0400

    Reset cursor before beginning reload sequence.
---
 src/frontends/qt4/GuiView.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 1a1ca54..b0d7c86 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -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;
 }

Reply via email to