Skip to content

Commit

Permalink
Fix drag & drop broken when current file is in read-only mode, issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Oct 17, 2023
1 parent e2818f5 commit 776ac34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scintilla/src/Document.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2979,7 +2979,7 @@ class BuiltinRegex final : public RegexSearchBase {
RESearch search;
#if defined(BOOST_REGEX_STANDALONE) || !defined(NO_CXX11_REGEX)
// cache for previous pattern to avoid recompile
FindOption previousFlags;
FindOption previousFlags = FindOption::None;
std::string cachedPattern;
#endif
std::string substituted;
Expand Down
2 changes: 1 addition & 1 deletion src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ void MsgDropFiles(HWND hwnd, UINT umsg, WPARAM wParam) {
HDROP hDrop = (HDROP)wParam;
// fix drag & drop file from 32-bit app to 64-bit Notepad2 before Win 10
#if defined(_WIN64) && (_WIN32_WINNT < _WIN32_WINNT_WIN10)
if (umsg == WM_DROPFILES) {
if (umsg == WM_DROPFILES && !bReadOnlyMode) {
POINT pt;
if (DragQueryPoint(hDrop, &pt)) { // client area
RECT rc;
Expand Down

0 comments on commit 776ac34

Please sign in to comment.