From a172aaa969abd0fcf80aa6cb1ae70fdc4698649f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 10 Jan 2011 12:08:49 +1100 Subject: 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. --- src/Editor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Editor.h') 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); -- cgit v1.2.3