mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 08:14:18 +02:00
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
|
if (pBuf != currentBufMain && pBuf != currentBufSub) // if hover on other tab
|
||||||
{
|
{
|
||||||
_documentPeeker.doDialog(p, pBuf, *(const_cast<ScintillaEditView*>(pTabDocView->getScintillaEditView())));
|
_documentPeeker.doDialog(p, pBuf, *(const_cast<ScintillaEditView*>(pTabDocView->getScintillaEditView())));
|
||||||
|
_pEditView->getFocus();
|
||||||
}
|
}
|
||||||
else // if hover on current active tab
|
else // if hover on current active tab
|
||||||
{
|
{
|
||||||
|
@ -100,7 +100,6 @@ void DocumentPeeker::syncDisplay(Buffer *buf, ScintillaEditView & scintSource)
|
|||||||
_pPeekerView->showMargin(2, false);
|
_pPeekerView->showMargin(2, false);
|
||||||
_pPeekerView->showMargin(3, false);
|
_pPeekerView->showMargin(3, false);
|
||||||
|
|
||||||
_pPeekerView->execute(SCI_SETREADONLY, true);
|
|
||||||
_pPeekerView->execute(SCI_SETCARETSTYLE, CARETSTYLE_INVISIBLE);
|
_pPeekerView->execute(SCI_SETCARETSTYLE, CARETSTYLE_INVISIBLE);
|
||||||
Window::display();
|
Window::display();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user