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:
parent
8e4b7014ff
commit
dbe2b698b1
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue