public void addToHistory(String buffer) {
    if (isAutoFlush()) {
      super.add(ArgumentRedactor.redact(buffer.trim()));
    }
  }
Overrides jline.History to add History without newline characters.

@since GemFire 7.0
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/shell/jline/GfshHistory.java