ed

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

commit c8814150deb48370b8f758135b378599cac727e9
parent 3b7f8d3a4fe2b5c0c259d3604572bf213f92e75e
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue,  9 Jan 2024 19:46:38 +0000

interactive -> ia

Diffstat:
Mcommand.ha | 12++++++------
Mglobal.ha | 4++--
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/command.ha b/command.ha @@ -84,7 +84,7 @@ fn lookupcmd(name: rune) CommandFn = { case 'E' => return &cmd_edit_forced; case 'f' => return &cmd_filename; case 'g' => return &cmd_global; - case 'G' => return &cmd_global_interative; + case 'G' => return &cmd_global_ia; case 'h' => return &cmd_help; case 'H' => return &cmd_helpmode; case 'i' => return &cmd_insert; @@ -102,7 +102,7 @@ fn lookupcmd(name: rune) CommandFn = { case 't' => return &cmd_copy; case 'u' => return &cmd_undo; case 'v' => return &cmd_invglobal; - case 'V' => return &cmd_invglobal_interative; + case 'V' => return &cmd_invglobal_ia; case 'w' => return &cmd_write; case '=' => return &cmd_linenumber; case '!' => return &cmd_shellescape; @@ -200,8 +200,8 @@ fn cmd_global(s: *Session, cmd: *Command) (void | Error) = { global(s, cmd, true)?; }; -fn cmd_global_interative(s: *Session, cmd: *Command) (void | Error) = { - global_interactive(s, cmd, true)?; +fn cmd_global_ia(s: *Session, cmd: *Command) (void | Error) = { + global_ia(s, cmd, true)?; }; fn cmd_help(s: *Session, cmd: *Command) (void | Error) = { @@ -535,8 +535,8 @@ fn cmd_invglobal(s: *Session, cmd: *Command) (void | Error) = { global(s, cmd, false)?; }; -fn cmd_invglobal_interative(s: *Session, cmd: *Command) (void | Error) = { - global_interactive(s, cmd, false)?; +fn cmd_invglobal_ia(s: *Session, cmd: *Command) (void | Error) = { + global_ia(s, cmd, false)?; }; fn cmd_write(s: *Session, cmd: *Command) (void | Error) = { diff --git a/global.ha b/global.ha @@ -105,7 +105,7 @@ fn global(s: *Session, cmd: *Command, matched: bool) (void | Error) = { }; }; -fn global_interactive(s: *Session, cmd: *Command, matched: bool) (void | Error) = { +fn global_ia(s: *Session, cmd: *Command, matched: bool) (void | Error) = { s.warned = false; const (a, b) = get_range( @@ -157,7 +157,7 @@ fn global_interactive(s: *Session, cmd: *Command, matched: bool) (void | Error) return e; }; - // TODO: write new parse_global_interactive() function instead + // TODO: write new parse_global_ia() function instead // as to avoid reading multiple lines in the case of // 'a', 'c', 'i' ? switch (subcmd.name) {