ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit ee9142b75de70786fd811b355eaa9307c823e6b1
parent 79d94dec59cd3837ad7d082db9a7d4a946e922c8
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 11 Jan 2024 01:08:54 +0000

main.ha: handle first edit error

Diffstat:
Mmain.ha | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main.ha b/main.ha @@ -79,10 +79,11 @@ export fn main() void = { }; if (len(s.buf.filename) != 0) - cmd_edit(&s, &Command{ + execute(&s, &Command{ + name = 'e', arg1 = strings::dup(s.buf.filename), ... - }): void; // TODO: handle error + }): void; for (true) :repl { if (s.promptmode)