shows entire session history when only startsess is given
added ~session/noline case to test_extract_hist_ranges()

- added ~10/ case, which is expected to yield (-10, 1, None)
added a missing comma
Merge pull request #2967 from joonro/history-previous-session-no-line

shows entire session history when only startsess is given