summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-07-09 08:42:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-07-09 08:42:56 -0700
commit02f786920bc437b4192fdea36d525a33e5821eae (patch)
tree81081ee91c788ba7a4b898eb5b143d3d703a73dd /struct.h
parentc958dacad2dfbf2008ae1de8a98f0155126e53af (diff)
downloadtxr-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 'struct.h')
0 files changed, 0 insertions, 0 deletions