aboutsummaryrefslogtreecommitdiff
path: root/editors/ed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/ed.c')
-rw-r--r--editors/ed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 8da7b1dd5..c028b78cb 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -33,12 +33,11 @@ typedef struct LINE {
33} LINE; 33} LINE;
34 34
35 35
36#define searchString bb_common_bufsiz1 36#define searchString bb_common_bufsiz1
37#define sizeof_searchString COMMON_BUFSIZE
38 37
39enum { 38enum {
40 USERSIZE = sizeof_searchString > 1024 ? 1024 39 USERSIZE = COMMON_BUFSIZE > 1024 ? 1024
41 : sizeof_searchString - 1, /* max line length typed in by user */ 40 : COMMON_BUFSIZE - 1, /* max line length typed in by user */
42 INITBUF_SIZE = 1024, /* initial buffer size */ 41 INITBUF_SIZE = 1024, /* initial buffer size */
43}; 42};
44 43
@@ -68,6 +67,7 @@ struct globals {
68#define lines (G.lines ) 67#define lines (G.lines )
69#define marks (G.marks ) 68#define marks (G.marks )
70#define INIT_G() do { \ 69#define INIT_G() do { \
70 setup_common_bufsiz(); \
71 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ 71 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
72} while (0) 72} while (0)
73 73