private void setPreviousEntryText() {
        String text = "";
        if (currentPreviousEntry < previousEntries.size()
                && currentPreviousEntry >= 0)
            text = previousEntries.get(currentPreviousEntry);

        if (useInlineInput) {
            if (inputControl.isReceivingInput() && inputControl.isInfiniteInput())
                inputControl.setInput(text);
        } else {
            inputArea.setText(text);
            if (alwaysKeepScrollBarMaxed || (!alwaysKeepScrollBarMaxed && isScrollBarAtMax)) {
                ignoreAdjustment = true;
                setScrollBarMax();
            }
        }
    }