bore

Unnamed repository
Log | Files | Refs | README

commit 419e76054ac1c98751f2212d5193de16cbb5d0ec
parent 1d10866d60a1b4d16bd7e6fc2aa6950da1e122c1
Author: phoebos <ben@bvnf.space>
Date:   Thu, 23 Sep 2021 20:43:30 +0100

ed: start with cur_line = 1

this allows you to write into the buffer if a file wasn't read in

Diffstat:
Med.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ed.c b/ed.c @@ -24,7 +24,7 @@ struct line { struct line *first; int num_lines = 0; -int cur_line = 0; +int cur_line = 1; void print_byte_counts(size_t n) {