diff options
author | nyamatongwe <unknown> | 2011-01-10 12:08:49 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-01-10 12:08:49 +1100 |
commit | 7a55b6d47b75b665100a04ca16e6a210d436d235 (patch) | |
tree | 3501681428732495b06b4321cbb0c8d977e9e3ec /src/Editor.h | |
parent | b5f28ae72e7d19b28bb190189ba78a54ad9976a0 (diff) | |
download | scintilla-mirror-7a55b6d47b75b665100a04ca16e6a210d436d235.tar.gz |
Fixing double-click inside word selecting non-word characters. Bug #3111174.
A double-click on a visible character always selects that character and the word it is in.
From Jordan Russell.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h index a618e1e40..97af7b089 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -201,6 +201,9 @@ protected: // ScintillaBase subclass needs access to much of Editor int lastXChosen; int lineAnchor; int originalAnchorPos; + int wordSelectAnchorStartPos; + int wordSelectAnchorEndPos; + int wordSelectInitialCaretPos; int targetStart; int targetEnd; int searchFlags; @@ -481,6 +484,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool PointInSelection(Point pt); bool PointInSelMargin(Point pt); void LineSelection(int lineCurrent_, int lineAnchor_); + void WordSelection(int pos); void DwellEnd(bool mouseMoved); void MouseLeave(); virtual void ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt); |