diff --git a/PSReadLine/Cmdlets.cs b/PSReadLine/Cmdlets.cs index 8bad00c..001435e 100644 --- a/PSReadLine/Cmdlets.cs +++ b/PSReadLine/Cmdlets.cs @@ -461,6 +461,7 @@ namespace Microsoft.PowerShell internal SwitchParameter? _historySearchCursorMovesToEnd; [Parameter(ParameterSetName = "OptionsSet")] + [ValidateRange(1, int.MaxValue)] public int MaximumHistoryCount { get { return _maximumHistoryCount.GetValueOrDefault(); }