mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +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)
|
||||
{
|
||||
currentBufferView()->cursor().reset();
|
||||
Buffer::ReadStatus status = buf.reload();
|
||||
return status == Buffer::ReadSuccess;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user