public string Previous() { if (!PreviousAvailable()) return null; cursor--; if (cursor < 0) cursor = history.Length - 1; return history[cursor]; }