range-select fixes:

* dont crash when shiftclicking between folders
* remember origin when lazyloading more files
This commit is contained in:
ed 2023-07-25 14:06:31 +02:00
parent cc0c9839eb
commit 0896c5295c

View file

@ -5848,6 +5848,8 @@ var treectl = (function () {
}
if (sel.length)
msel.loadsel(sel);
else
msel.origin_id(null);
setTimeout(eval_hash, 1);
}
@ -6718,7 +6720,9 @@ var msel = (function () {
};
r.loadsel = function (sel) {
if (!sel || !r.so || !ebi(r.so))
r.so = r.pr = null;
r.sel = [];
r.load();