diff options
| author | nyamatongwe <devnull@localhost> | 2001-04-12 14:18:15 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-04-12 14:18:15 +0000 | 
| commit | 8a523b80c03498986162b72b5c8109c3ee0d857f (patch) | |
| tree | 6b53a4ec7f4bf4d8a98079dfaacd0e061ba31553 /src | |
| parent | 52049a8b05631e371f00e0d2591c2bc94c267502 (diff) | |
| download | scintilla-mirror-8a523b80c03498986162b72b5c8109c3ee0d857f.tar.gz | |
Fix from Philippe to a rectangular selection staing active after the user
starts navigating with cursor keys.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index e6b1d69f3..e9a258775 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -467,6 +467,7 @@ void Editor::SetSelection(int currentPos_) {  }  void Editor::SetEmptySelection(int currentPos_) { +	selType = selStream;  	SetSelection(currentPos_, currentPos_);  } @@ -2878,13 +2879,13 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b  				CopySelectionIntoDrag();  				StartDrag();  			} else { -				selType = alt ? selRectangle : selStream;  				xStartSelect = pt.x - vs.fixedColumnWidth + xOffset;  				xEndSelect = pt.x - vs.fixedColumnWidth + xOffset;  				SetDragPosition(invalidPosition);  				SetMouseCapture(true);  				if (!shift)  					SetEmptySelection(newPos); +				selType = alt ? selRectangle : selStream;  				selectionType = selChar;  				originalAnchorPos = currentPos;  			} | 
