]> git.lyx.org Git - features.git/commitdiff
Reset cursor before beginning reload sequence.
authorRichard Heck <rgheck@lyx.org>
Tue, 3 Oct 2017 21:21:21 +0000 (17:21 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 9 Oct 2017 03:06:32 +0000 (23:06 -0400)
src/frontends/qt4/GuiView.cpp

index 1a1ca54be1c504f01421170d29ba3a70d039115e..b0d7c86fd0a063ce41fe7b07b5d0125b363b28ea 100644 (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;
 }