diff options
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 0db5789a4..82c5895eb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5678,8 +5678,10 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b  						SetSelection(newPos, newPos);  					}  				} -				SelectionPosition anchorCurrent = sel.IsRectangular() ?  -					sel.Rectangular().anchor : sel.RangeMain().anchor; +				SelectionPosition anchorCurrent = newPos; +				if (shift) +					anchorCurrent = sel.IsRectangular() ?  +						sel.Rectangular().anchor : sel.RangeMain().anchor;  				sel.selType = alt ? Selection::selRectangle : Selection::selStream;  				selectionType = selChar;  				originalAnchorPos = sel.MainCaret(); | 
