зеркало из https://github.com/mozilla/pjs.git
If we can't find anywhere from which to extend a range, give up and just select the end item b=372591 r=enn sr=roc
This commit is contained in:
Родитель
125cf0e0a1
Коммит
604ebd0758
|
@ -445,7 +445,10 @@ NS_IMETHODIMP nsTreeSelection::RangedSelect(PRInt32 aStartIndex, PRInt32 aEndInd
|
|||
if (aStartIndex == -1) {
|
||||
if (mShiftSelectPivot != -1)
|
||||
aStartIndex = mShiftSelectPivot;
|
||||
else aStartIndex = mCurrentIndex;
|
||||
else if (mCurrentIndex != -1)
|
||||
aStartIndex = mCurrentIndex;
|
||||
else
|
||||
aStartIndex = aEndIndex;
|
||||
}
|
||||
|
||||
mShiftSelectPivot = aStartIndex;
|
||||
|
|
Загрузка…
Ссылка в новой задаче