GPasteHistory: track only the biggest index

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Merge branch '3.0'

* 3.0:
  GPasteHistory: track only the biggest index