diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-10 10:36:26 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-10 10:37:36 +0000 |
commit | 890c3a474327f9b04f7f86a6ecb4d04a43725a84 (patch) | |
tree | 60bea907de7e3db48f9a7a964e1bb5656dd0d034 | |
parent | f260cd93067d81e7e5bc33d8f1b30f0639a1dc89 (diff) | |
download | dtas-890c3a474327f9b04f7f86a6ecb4d04a43725a84.tar.gz |
Otherwise we end up going past the end of the list.
-rw-r--r-- | lib/dtas/tracklist.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/tracklist.rb b/lib/dtas/tracklist.rb index b6f02c3..ef60915 100644 --- a/lib/dtas/tracklist.rb +++ b/lib/dtas/tracklist.rb @@ -94,7 +94,7 @@ class DTAS::Tracklist # :nodoc: if set_as_current @pos = idx + 1 else - @pos += 1 if @pos >= idx + @pos += 1 if @pos > idx end else # nil = first_track @list.unshift(track) |