commit 35b39978e5ad17722d20594e66d9157c19f5077f
parent fbd53d54781074bc73ec3304b972aff4b9487103
Author: Byron Torres <b@torresjrjr.com>
Date: Sat, 17 Dec 2022 01:36:21 +0000
add missing &cmd_shellescape; style
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/buffer.ha b/buffer.ha
@@ -46,8 +46,7 @@ fn buf_read(buf: *buffer, src: io::handle, a: size) (size, size) = {
// TODO: don't call this here, call it at a higher level
// buf_wipetrash(buf);
- let ls: []*line = [];
- defer free(ls);
+ let ls: []*line = []; defer free(ls);
let sz = 0z;
for (true) {
const bytes = match (bufio::scanline(src)) {
diff --git a/parse.ha b/parse.ha
@@ -206,6 +206,7 @@ fn scan_cmdfn(iter: *strings::iterator) commandfn = {
switch (r) {
case '=' => return &cmd_linenumber;
+// case '!' => return &cmd_shellescape;
// case 'E' => return &cmd_edit_forced;
// case 'G' => return &cmd_global_manual;
case 'H' => return &cmd_helpmode;