command/QueueCommands: offset relative "addid" positions by one

Now, "+0" means "right after the current song" and "-0" means "right
before the current song".  Mnemonic: there are zero songs between the
current song and the newly added song.
This commit is contained in:
Max Kellermann
2021-10-07 22:06:13 +02:00
parent 3993176b76
commit 076c9a0dd9
2 changed files with 21 additions and 20 deletions

View File

@@ -711,9 +711,10 @@ Whenever possible, ids should be used.
If the second parameter is given, then the song is inserted at the
specified position. If the parameter starts with ``+`` or ``-``,
then it is relative to the current song; e.g. ``+1`` inserts right
after the current song and ``-1`` inserts right before the current
song. (``±0`` is not a legal value.)
then it is relative to the current song; e.g. ``+0`` inserts right
after the current song and ``-0`` inserts right before the current
song (i.e. zero songs between the current song and the newly added
song).
.. _command_clear: