Fix 2 logic error (wrong copied/pasted)

ref:
774321e099 (r64847350)
This commit is contained in:
Don Ho 2022-01-29 15:11:59 +01:00
parent 4077ec2f69
commit 6d311e102e
1 changed files with 2 additions and 2 deletions

View File

@ -2568,7 +2568,7 @@ void Notepad_plus::findMatchingBracePos(intptr_t& braceAtCaret, intptr_t& braceO
bool Notepad_plus::braceMatch()
{
Buffer* currentBuf = _pEditView->getCurrentBuffer();
if (!currentBuf->isLargeFile())
if (currentBuf->isLargeFile())
return false;
intptr_t braceAtCaret = -1;
@ -2982,7 +2982,7 @@ bool isUrl(TCHAR * text, int textLen, int start, int* segmentLen)
void Notepad_plus::addHotSpot(ScintillaEditView* view)
{
Buffer* currentBuf = _pEditView->getCurrentBuffer();
if (!currentBuf->isLargeFile())
if (currentBuf->isLargeFile())
return;
ScintillaEditView* pView = view ? view : _pEditView;