textviewer initiable through hotkeys

This commit is contained in:
ed 2021-11-11 00:18:34 +01:00
parent 5352f7cda7
commit a4dd44f648

View file

@ -2933,7 +2933,7 @@ function tree_scrolltoo(q) {
function tree_neigh(n) { function tree_neigh(n) {
var links = QSA(showfile.active() ? '#docul li>a' : '#treeul li>a+a'); var links = QSA(showfile.active() || treectl.texts ? '#docul li>a' : '#treeul li>a+a');
if (!links.length) { if (!links.length) {
treectl.dir_cb = function () { treectl.dir_cb = function () {
tree_neigh(n); tree_neigh(n);
@ -2948,7 +2948,7 @@ function tree_neigh(n) {
break; break;
} }
} }
if (act == -1) if (act == -1 && !treectl.texts)
return; return;
act += n; act += n;