From 6d116630901ec0702cc537cf0a7db78854ff16ab Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 3 Oct 2017 17:21:21 -0400 Subject: [PATCH] Reset cursor before beginning reload sequence. (cherry picked from commit af381a2fb25df71b43668fa46ba9b6395f266751) --- src/frontends/qt4/GuiView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index bb54b0aa5c..0dd47a2a3f 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; }