mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Reset cursor before beginning reload sequence.
This commit is contained in:
parent
23e67a3829
commit
af381a2fb2
@ -3173,6 +3173,7 @@ static bool ensureBufferClean(Buffer * buffer)
|
|||||||
|
|
||||||
bool GuiView::reloadBuffer(Buffer & buf)
|
bool GuiView::reloadBuffer(Buffer & buf)
|
||||||
{
|
{
|
||||||
|
currentBufferView()->cursor().reset();
|
||||||
Buffer::ReadStatus status = buf.reload();
|
Buffer::ReadStatus status = buf.reload();
|
||||||
return status == Buffer::ReadSuccess;
|
return status == Buffer::ReadSuccess;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user