commit 429d2ff71559617c967f9c98833772031c0c9859 parent 6837a8f2cbbdc264b067af0761106b3bc3158b8d Author: Byron Torres <b@torresjrjr.com> Date: Wed, 10 Jan 2024 23:13:16 +0000 cmd_substitute(): fix cursor Diffstat:
M | command.ha | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/command.ha b/command.ha @@ -507,6 +507,8 @@ fn cmd_substitute(s: *Session, cmd: *Command) (void | Error) = { buf_delete(s.buf, n, n); buf_insert(s.buf, n, newline); + + s.buf.cursor = n; }; printmode(s, cmd)?;