Ticket #100 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

user defined prompt not restored after history search finished with enter

Reported by: phercek Owned by:
Priority: minor Milestone:
Version: Keywords:


When I find the wanted string in history and confirm it with enter then getInputLine returns without restoring the user defined prompt followed with the string found. For example, when I type ctrl-r : m a enter then the text on the terminal will be (reverse-i-search)`:ma': :main instead of *Main> :main. So the user defined prompt is not there.

The bug can be worked around by adding e.g. bind: return right return to ~/.haskeline.

Change History

Changed 8 years ago by judah

  • status changed from new to closed
  • resolution set to fixed

Thanks for the report! I tested this with haskeline-0.6.2 and it appears to be fixed since If that's not what you're seeing, please re-open this ticket.

(To test the new versions of Haskeline you can use the example program from the Haddock docs, or alternately try the ghci-haskeline package from Hackage.)

Note: See TracTickets for help on using tickets.