Fix replace in files regression.

Make focus always on main editor, so we don't need to set document as
read only while it's being peeked.
This commit is contained in:
Don HO 2017-06-11 13:07:48 +02:00
parent 8e4b7014ff
commit dbe2b698b1
2 changed files with 1 additions and 1 deletions

View File

@ -177,6 +177,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
if (pBuf != currentBufMain && pBuf != currentBufSub) // if hover on other tab
{
_documentPeeker.doDialog(p, pBuf, *(const_cast<ScintillaEditView*>(pTabDocView->getScintillaEditView())));
_pEditView->getFocus();
}
else // if hover on current active tab
{

View File

@ -100,7 +100,6 @@ void DocumentPeeker::syncDisplay(Buffer *buf, ScintillaEditView & scintSource)
_pPeekerView->showMargin(2, false);
_pPeekerView->showMargin(3, false);
_pPeekerView->execute(SCI_SETREADONLY, true);
_pPeekerView->execute(SCI_SETCARETSTYLE, CARETSTYLE_INVISIBLE);
Window::display();
}