GHCi 126.96.36.19910422 erases left hand side of interactive declaration when tab completion is requested
When pressing ⭾ while in an interactive prompt, all entered text left of the last equals sign (
=) is removed.
Steps to reproduce
- Open GHCi (
- Type some text containing an equals sign (
=) such as
let x = 2 +
- Press the “tab” key (⭾)
GHCi will attempt to autocomplete the word left of the cursor.
GHCi performs the expected behavior but also erases all text left of or at the rightmost equals sign (
View this behavior in action in this terminal recording:
- GHC version used: 188.8.131.5210422
- Operating System: Pop!_OS 21.04 on Linux 5.11.0-7620-generic
- System Architecture: x86 64