Ticket #100 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

user defined prompt not restored after history search finished with enter

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

Description

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 5 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 0.6.1.6. 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.