« get me outta code hell

fix current track index being one too low - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-03 21:31:20 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-03 21:31:20 -0300
commit35adfb7c95376398f78ad4f0068154a87b5cce32 (patch)
tree9cb75c80caac51c797f94f92f9afc11eaf053e80
parente01f3758f85e0dc0c81e3388103a84483548a228 (diff)
fix current track index being one too low
oops v_v i apparently forgot to commit this!!
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 81df56e..371bd20 100644
--- a/ui.js
+++ b/ui.js
@@ -1617,7 +1617,7 @@ class AppElement extends FocusElement {
       } else {
         insertString = ''
       }
-      this.queueLengthLabel.text = `(${this.SQP.playSymbol} ${playingIndex + insertString} / ${items.length})`
+      this.queueLengthLabel.text = `(${this.SQP.playSymbol} ${playingIndex + 1 + insertString} / ${items.length})`
     } else {
       this.queueLengthLabel.text = `(${items.length})`
     }