From a273e086247695b91f81625c9028e05d1ee8a8b7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 9 Jun 2011 08:40:52 +1000 Subject: 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. --- src/Editor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.h') 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(); -- cgit v1.2.3