Skip to content

Commit

Permalink
Fixed input default value broken (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Mar 5, 2021
1 parent b1aa26e commit cc2af3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharprompt/Forms/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected override void InputTemplate(ScreenBuffer screenBuffer)

if (_defaultValue.HasValue)
{
screenBuffer.Write($"({_defaultValue}) ");
screenBuffer.Write($"({_defaultValue.Value}) ");
}

var (left, top) = screenBuffer.GetCursorPosition();
Expand Down

0 comments on commit cc2af3d

Please sign in to comment.