Additional patch for freemint.
Created attachment 216466 [details, diff] readline patch
was this already reported upstream by chance?
patch added