• exec/load/tree.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, December 05, 2024 17:00:15
    https://gitlab.synchro.net/main/sbbs/-/commit/32ebf886804dcd99046fd969
    Modified Files:
    exec/load/tree.js
    Log Message:
    Address occasional TypeError: this.current is undefined

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, February 18, 2026 18:33:30
    https://gitlab.synchro.net/main/sbbs/-/commit/0742ce5990f1c31f0fe99682
    Modified Files:
    exec/load/tree.js
    Log Message:
    Fix issue with PageDown key when number of items > frame height

    When the number of items in the tree was > the frame height and the number of remaining items was less than a full page and the PgDn key was hit, a item's return value that was non-sensical. Instead, just select the last item in this case,
    don't return.

    Test case using uselect_tree.js as Select Item loadable module:

    for(var i = 0; i < 40; ++i)
    console.uselect(i, "Choose", String(i));
    var result = console.uselect();
    print(typeof result + " = " + result);

    Hitting page down a couple of times with this script would return 15. It
    should not have returned at all until ENTER was hit to select and item and the number 15 made no sense.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net