Activate buffer after reload

Fixes #3080, closes #3082
This commit is contained in:
SinghRajenM 2017-03-21 00:18:51 +05:30 committed by Don HO
parent e10847b429
commit 336992ea77

View File

@ -444,6 +444,10 @@ bool Notepad_plus::doReload(BufferID id, bool alert)
_subEditView.execute(SCI_SETDOCPOINTER, 0, pBuf->getDocument()); _subEditView.execute(SCI_SETDOCPOINTER, 0, pBuf->getDocument());
_subEditView.restoreCurrentPos(); _subEditView.restoreCurrentPos();
} }
// Once reload is complete, activate buffer which will take care of
// many settings such as update status bar, clickable link etc.
activateBuffer(id, currentView());
return res; return res;
} }