This fixed the mixing of multiple history seen in #13631
This fixed the mixing of multiple history seen in #13631

It forces get_tail to put the current session last in the returned
results.

ipython/ipython,ipython/ipython