src/vs/workbench/contrib/terminal/browser/addons/commandTrackerAddon.ts/CommandTrackerAddon/_findNextCommand
class CommandTrackerAddon:	private _findNextCommand(xterm: Terminal): number {
		if (this._currentMarker === Boundary.Top) {
			return 0;
		} else if (this._currentMarker === Boundary.Bottom) {
			return xterm.markers.length - 1;
		}

		let i;
		for (i = 0; i < xterm.markers.length; i++) {
			if (xterm.markers[i].line > this._currentMarker.line) {
				return i;
			}
		}

		return xterm.markers.length;
	}