bore

Unnamed repository
Log | Files | Refs | README

commit 4c0c0eef7ba78a6877908cb7b2f5634eeedc30ef
parent 7d182ecb46ac967d16633dfaafb1909e30dcb91c
Author: phoebos <ben@bvnf.space>
Date:   Fri, 24 Sep 2021 00:18:55 +0100

ed: add 'c'

Diffstat:
Med.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/ed.c b/ed.c @@ -266,6 +266,17 @@ ed(char *startfile) { continue; } break; + case 'c': + /* delete then insert */ + if (delete_line(cur_line) != 0) { + printf("?\n"); + continue; + } + if (input(cur_line) != 0) { + printf("?\n"); + continue; + } + break; case 'w': if (startfile) { if (write_buf(startfile) != 0)