fetch_hist_item returns empty string when at top of history
called wrong function
explicitly set hst_pos when it goes out of bounds; hst_pos = hst_tot represents being at the end of the history