ed

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

commit 8da9f2710a355a6e78f6c51f05feeb727f902ff8
parent d1b4b445f4669df0196705c7950b1f9cc2457588
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun, 17 Mar 2024 22:16:20 +0000

simplify filename logic

Diffstat:
Mmain.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.ha b/main.ha @@ -80,7 +80,7 @@ export fn main() void = { s.buf.filename = strings::dup(progcmd.args[0]); }; - if (len(s.buf.filename) != 0) + if (s.buf.filename != "") execute(&s, &Command{ name = 'e', arg1 = strings::dup(s.buf.filename),