diff options
author | nyamatongwe <devnull@localhost> | 2011-06-09 08:40:52 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-09 08:40:52 +1000 |
commit | 739d908d758a1ea88d4cc124c1d6c38750cbd4bf (patch) | |
tree | 4d40790a7416dc890339d55614b1acac7780fc96 /src/Editor.h | |
parent | 017178191be60f59c6679c2bc9d6ddcd353f5e0f (diff) | |
download | scintilla-mirror-739d908d758a1ea88d4cc124c1d6c38750cbd4bf.tar.gz |
Improved version of change set 3704. Bug #3312763.
Make line selection word wrap aware but leave triple-click as
selecting document line.
From Marko Njezic.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index 877f41443..ca01bf6d3 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -194,7 +194,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int dwellDelay; int ticksToDwell; bool dwelling; - enum { selChar, selWord, selLine } selectionType; + enum { selChar, selWord, selSubLine, selWholeLine } selectionType; Point ptMouseLast; enum { ddNone, ddInitial, ddDragging } inDragDrop; bool dropWentOutside; @@ -492,7 +492,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool PointInSelection(Point pt); bool PointInSelMargin(Point pt); Window::Cursor GetMarginCursor(Point pt); - void LineSelection(int lineCurrentPos_, int lineAnchorPos_); + void LineSelection(int lineCurrentPos_, int lineAnchorPos_, bool wholeLine); void WordSelection(int pos); void DwellEnd(bool mouseMoved); void MouseLeave(); |