diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-09 08:42:56 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-09 08:42:56 -0700 |
commit | 02f786920bc437b4192fdea36d525a33e5821eae (patch) | |
tree | 81081ee91c788ba7a4b898eb5b143d3d703a73dd /unwind.h | |
parent | c958dacad2dfbf2008ae1de8a98f0155126e53af (diff) | |
download | txr-02f786920bc437b4192fdea36d525a33e5821eae.tar.gz txr-02f786920bc437b4192fdea36d525a33e5821eae.tar.bz2 txr-02f786920bc437b4192fdea36d525a33e5821eae.zip |
linenoise: replace linefeeds with CR in previous result.
This fixes the issue that when a multi-line result is pasted
into the edit buffer with Ctrl-X P, the line breaks appear in
it as linefeeds, displayed as ^J. In linenoise, we need line
breaks to be carriage returns.
* linenoise/linenoise.c (lino_set_result): replace newlines
with carriage returns in the given string.
* linenoise/linenoise.h (lino_set_result): Add comment that
function takes ownership of memory assumed to be malloced,
and that it modifies it.
Diffstat (limited to 'unwind.h')
0 files changed, 0 insertions, 0 deletions