diff --git a/src/fancyline/widget/history_search.cr b/src/fancyline/widget/history_search.cr index 39e6957..729b66f 100644 --- a/src/fancyline/widget/history_search.cr +++ b/src/fancyline/widget/history_search.cr @@ -79,7 +79,6 @@ class Fancyline end @position = 0 - editor.prompt = search_prompt move_entry ctx, -1 end @@ -110,6 +109,7 @@ class Fancyline ctx.editor.line = @matches[@position] ctx.editor.cursor = ctx.editor.line.size end + editor.prompt = search_prompt end end end