aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-07-08 04:28:11 +0000
committernyamatongwe <devnull@localhost>2005-07-08 04:28:11 +0000
commit891fa11d867e5efaad59e06a5cb9d354c5124150 (patch)
tree29027f45b0b6d6235e42e6658cd1ee51745e9758
parentad54fd3bb88a7a5c561c50517a6a46114b2e91c8 (diff)
downloadscintilla-mirror-891fa11d867e5efaad59e06a5cb9d354c5124150.tar.gz
Patch #1234222 for EM_EXSETSEL.
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index fe4e70fc7..fce2af9d4 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -904,7 +904,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
}
CharacterRange *pCR = reinterpret_cast<CharacterRange *>(lParam);
selType = selStream;
- if (pCR->cpMax == 0 && pCR->cpMax == -1) {
+ if (pCR->cpMin == 0 && pCR->cpMax == -1) {
SetSelection(pCR->cpMin, pdoc->Length());
} else {
SetSelection(pCR->cpMin, pCR->cpMax);