Set hist_rowh to one history-window row, not half that. All (former) uses of hist_rowh, once it's set, multiplied it by 2. So now we multiply it by 2 to begin with and save the bother elsewhere. It also makes more sense for a variable named "hist_rowh" to be the size of a row in the history list, not half that.