private void HintChangedHandler(HintHit current) { if (current != null && Console.HintModule.IteratingHints) { SetCursor(current.SufixOffset); } }
private void SetToCurrentHint() { if (Iterator != null) { Current = new HintHit(Console.InputModule.UserInput, Iterator, Iterator.Current); OnHintChanged.Invoke(Current); } else { bool hadValue = Current != null; Current = null; if (hadValue) { OnHintChanged.Invoke(Current); } } }