Don't use directly the line numbers and call to getlst()
when a line is matched.
---
ed.c | 30 ++
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/ed.c b/ed.c
index 13c41c6..e6d92e2 100644
--- a/ed.c
+++ b/ed.c
@@ -1318,7 +1318,7 @@ chkglobal(void)
stat
From: "Roberto E. Vargas Caballero"
---
ed.c | 8
1 file changed, 8 insertions(+)
diff --git a/ed.c b/ed.c
index fe68197..bf66f8b 100644
--- a/ed.c
+++ b/ed.c
@@ -1,4 +1,12 @@
/* See LICENSE file for copyright and license details. */
+
+/*
+ * TODO: Multi-line commands don't work in g
From: "Roberto E. Vargas Caballero"
Don't use directly the line numbers and call to getlst()
when a line is matched.
---
ed.c | 30 ++
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/ed.c b/ed.c
index 13c41c6..1e814e9 100644
--- a/ed.c
+++ b/ed.c
@@ -1
From: "Roberto E. Vargas Caballero"
---
ed.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ed.c b/ed.c
index 5d85b52..8951d4b 100644
--- a/ed.c
+++ b/ed.c
@@ -833,22 +833,22 @@ join(void)
{
int i;
char *t, c;
- size_t len = 0, cap =
From: "Roberto E. Vargas Caballero"
C is compared against EOF, so it cannot be char.
---
ed.c | 21 ++---
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/ed.c b/ed.c
index fb4faf9..0f86759 100644
--- a/ed.c
+++ b/ed.c
@@ -926,15 +926,14 @@ static void
getrhs(int
From: "Roberto E. Vargas Caballero"
Current handling of strings is a bit messy. This type is copied
from the sed implementation. Addchar_ is added to be able to live
with String and old style chars based in 3 different variables.
---
ed.c | 23 +++
1 file changed, 23 insertio
Hi,
Here are some ed patches I send on the behalf of Roberto as he is having
mailing problems.
From: "Roberto E. Vargas Caballero"
---
ed.c | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/ed.c b/ed.c
index 2a84b60..5511a9e 100644
--- a/ed.c
+++ b/ed.c
@@ -1368,7 +1368,6 @@ sighup(int dummy)
static void
edit(void)
{
- setjmp(savesp);
for
From: "Roberto E. Vargas Caballero"
Avoid incorrect values in the number of undo elements and restore lastln
value after an undo operation.
---
ed.c | 21 +
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/ed.c b/ed.c
index dbdfe60..fe68197 100644
--- a/ed.c
+++
From: "Roberto E. Vargas Caballero"
---
ed.c | 21 ++---
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/ed.c b/ed.c
index 8951d4b..dcd91d1 100644
--- a/ed.c
+++ b/ed.c
@@ -887,38 +887,37 @@ quit(void)
static void
execsh(void)
{
- static char *cmd;
-
From: "Roberto E. Vargas Caballero"
---
ed.c | 31 +++
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/ed.c b/ed.c
index 0f86759..2a66184 100644
--- a/ed.c
+++ b/ed.c
@@ -970,26 +970,26 @@ getnth(void)
}
static void
-addpre(char **s, size_t *cap, s
From: "Roberto E. Vargas Caballero"
---
ed.c | 18 ++
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/ed.c b/ed.c
index 58bdb45..70dd2a5 100644
--- a/ed.c
+++ b/ed.c
@@ -19,6 +19,8 @@
#define LINESIZE80
#define NUMLINES32
#define CACHESIZ 4096
+#define
From: "Roberto E. Vargas Caballero"
---
ed.c | 32 +---
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/ed.c b/ed.c
index 97fa5e8..ca55c61 100644
--- a/ed.c
+++ b/ed.c
@@ -61,9 +61,8 @@ static size_t sizetxt, memtxt;
static int scratch;
static int pf
From: "Roberto E. Vargas Caballero"
Copy was using directly the line numbers and incrementing them
without calling to nextln(). It also didn't worried about how
line numbers are modified when we insert new lines.
---
ed.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --
From: "Roberto E. Vargas Caballero"
---
ed.c | 15 +++
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/ed.c b/ed.c
index ca55c61..2cf2708 100644
--- a/ed.c
+++ b/ed.c
@@ -54,10 +54,9 @@ static jmp_buf savesp;
static char *lasterr;
static size_t idxsize, lastidx;
stat
From: "Roberto E. Vargas Caballero"
---
ed.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/ed.c b/ed.c
index 2cf2708..5d85b52 100644
--- a/ed.c
+++ b/ed.c
@@ -44,7 +44,7 @@ struct undo {
static char *prompt = "*";
static regex_t *pattern;
static regmatch_t
From: "Roberto E. Vargas Caballero"
---
ed.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/ed.c b/ed.c
index 1e814e9..dbdfe60 100644
--- a/ed.c
+++ b/ed.c
@@ -841,14 +841,20 @@ join(void)
static void
scroll(int num)
{
- int i;
+ int max, ln, c
From: "Roberto E. Vargas Caballero"
All the ocurrences of addchar() were moved to addchar_(),
so we can rename addchar_() and remove the old definition.
---
ed.c | 63 ---
1 file changed, 24 insertions(+), 39 deletions(-)
diff --git a/
From: "Roberto E. Vargas Caballero"
C is compared against EOF, so it cannot be char.
---
ed.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ed.c b/ed.c
index dcd91d1..fb4faf9 100644
--- a/ed.c
+++ b/ed.c
@@ -888,8 +888,8 @@ static void
execsh(void)
{
static St
19 matches
Mail list logo