Completed function historyBufferReadPrevious