diff options
author | nyamatongwe <devnull@localhost> | 2011-01-10 12:08:49 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-01-10 12:08:49 +1100 |
commit | a172aaa969abd0fcf80aa6cb1ae70fdc4698649f (patch) | |
tree | 6b6307fc01ca9ee459cff7c82ce8dac1ffc9ed37 /src/Editor.h | |
parent | 940db5f84237af4ed2cd33345b626ed7095089fb (diff) | |
download | scintilla-mirror-a172aaa969abd0fcf80aa6cb1ae70fdc4698649f.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); |