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

    Reset cursor before beginning reload sequence.
    
    (cherry picked from commit af381a2fb25df71b43668fa46ba9b6395f266751)
---
 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 e48d6db..f936c33 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