« get me outta code hell

data: TrackSection: fix bad end-of-range offset in custom inspect - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-13 16:56:20 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-13 16:56:20 -0400
commit475824fb75deadd96be3e815dca5078aca83b2ac (patch)
tree6c2ef85210b0ed1c567d05c21d0fcc4f557d5ebb /src
parent2d87b70435ddf6b3b77a30a3ad083be48ffd2825 (diff)
data: TrackSection: fix bad end-of-range offset in custom inspect preview
Diffstat (limited to 'src')
-rw-r--r--src/data/things/album.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index 6bf683c5..3eb6fc60 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -839,7 +839,7 @@ export class TrackSection extends Thing {
 
         const range =
           (albumIndex >= 0 && first !== null && length !== null
-            ? `: ${first + 1}-${first + length + 1}`
+            ? `: ${first + 1}-${first + length}`
             : '');
 
         parts.push(` (${colors.yellow(num + range)} in ${colors.green(albumName)})`);