From 6d311e102e754dd4d31985c1c2681f56b76983cc Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 29 Jan 2022 15:11:59 +0100 Subject: [PATCH] Fix 2 logic error (wrong copied/pasted) ref: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/774321e0997e9561482124cd66007cee3c224758#r64847350 --- PowerEditor/src/Notepad_plus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 2e7219a7a..6a6f302b6 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -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;