Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-09-20 00:07:15 +0400
committerSimon Tatham <anakin@pobox.com>2001-09-20 00:07:15 +0400
commit39c3f9b8bc0c251ac55b5acb4a3894c7ce7e88d2 (patch)
treeb4c4b5ccc15ab27e6491c30e661db9d90e60abdb /ldisc.c
parent6364ff3e714ea1c8bd09d68eb83c28939dc594bd (diff)
Fix pasting of newlines in local line editing mode. Possibly not a
very _good_ fix; something might want doing after the release. [originally from svn r1277]
Diffstat (limited to 'ldisc.c')
-rw-r--r--ldisc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldisc.c b/ldisc.c
index e1b5a389..492ad1e0 100644
--- a/ldisc.c
+++ b/ldisc.c
@@ -61,7 +61,7 @@ static void bsb(int n)
#define CTRL(x) (x^'@')
#define KCTRL(x) ((x^'@') | 0x100)
-void ldisc_send(char *buf, int len)
+void ldisc_send(char *buf, int len, int interactive)
{
int keyflag = 0;
/*
@@ -86,6 +86,8 @@ void ldisc_send(char *buf, int len)
while (len--) {
int c;
c = *buf++ + keyflag;
+ if (!interactive && c == '\r')
+ c += KCTRL('@');
switch (term_quotenext ? ' ' : c) {
/*
* ^h/^?: delete one char and output one BSB