Skip to content

Commit b533456

Browse files
committed
Put empty strings into the history intermediate buffer.
1 parent 7683859 commit b533456

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/RadLine/LineEditorHistory.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ internal bool MovePrevious(LineEditorState state)
8888
if ((_current == null && _intermediate == null) || _showIntermediate)
8989
{
9090
// Got something written that we don't want to lose?
91-
if (!string.IsNullOrWhiteSpace(state.Text))
92-
{
93-
// Store the interediate buffer so it wont get lost.
94-
_intermediate = state.GetBuffers().ToArray();
95-
}
91+
// Store the interediate buffer so it wont get lost.
92+
_intermediate = state.GetBuffers().ToArray();
9693
}
9794

9895
_showIntermediate = false;

0 commit comments

Comments
 (0)