equal
deleted
inserted
replaced
1 http://lists.research.att.com/pipermail/ast-developers/2014q1/003807.html |
|
2 --- |
|
3 diff --git a/src/cmd/ksh93/edit/edit.c b/src/cmd/ksh93/edit/edit.c |
|
4 index 769ba2e..4f6330e 100644 |
|
5 --- a/src/cmd/ksh93/edit/edit.c |
|
6 +++ b/src/cmd/ksh93/edit/edit.c |
|
7 @@ -651,7 +651,8 @@ void ed_setup(register Edit_t *ep, int fd, int reedit) |
|
8 { |
|
9 int skip=0; |
|
10 ep->e_crlf = 0; |
|
11 - *pp++ = c; |
|
12 + if (pp < ppmax) |
|
13 + *pp++ = c; |
|
14 for(n=1; c = *last++; n++) |
|
15 { |
|
16 if(pp < ppmax) |
|
17 diff --git a/src/cmd/ksh93/include/edit.h b/src/cmd/ksh93/include/edit.h |
|
18 index 795777d..145066d 100644 |
|
19 --- a/src/cmd/ksh93/include/edit.h |
|
20 +++ b/src/cmd/ksh93/include/edit.h |
|
21 @@ -59,7 +59,7 @@ |
|
22 #endif /* SHOPT_MULTIBYTE */ |
|
23 |
|
24 #define TABSIZE 8 |
|
25 -#define PRSIZE 160 |
|
26 +#define PRSIZE 256 |
|
27 #define MAXLINE 1024 /* longest edit line permitted */ |
|
28 |
|
29 typedef struct _edit_pos |
|
30 |
|