Skip to content

Commit

Permalink
Fix 32 bits build error
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Nov 9, 2023
1 parent 8fb8515 commit 1eafbe8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
if (numSelections > 1 && numSelections == stringArray.size())
{
execute(SCI_BEGINUNDOACTION);
for (int i = 0; i < numSelections; ++i)
for (size_t i = 0; i < numSelections; ++i)
{
LRESULT posStart = execute(SCI_GETSELECTIONNSTART, i);
LRESULT posEnd = execute(SCI_GETSELECTIONNEND, i);
Expand All @@ -620,11 +620,11 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
}
execute(SCI_ENDUNDOACTION);

// Hack for prevent
//Buffer* buf = getCurrentBuffer();
//buf->setUserReadOnly(true);
// Hack for preventing the char "SYN" (0x16) from being adding into edit zone
Buffer* buf = getCurrentBuffer();
buf->setUserReadOnly(true);

_isMultiPasteActive = true;
_isMultiPasteActive = true; // It will be set false with WM_KEYUP message
return TRUE;
}
}
Expand Down

0 comments on commit 1eafbe8

Please sign in to comment.