* refactor selection handling to avoid swapping manually (use buf_selbeg and buf_selend)
* encode EOL setting in log entries?
* implement a mini-sed command to standardize scripts across platforms without relying on sed
+* add tag to enable/disable scrolling on command output insertion
Tags:
sub(/^\//, "\"", matchstr)
sub(/\$?\/;"$/, "\"", matchstr)
gsub(/\*/, "\\*", matchstr)
- gsub(/(\[|\])/, "\\\1", matchstr)
- print "grep -Hn", matchstr, $2, "| cut -d: -f1,2"
+ gsub(/\[/, "\\[", matchstr)
+ gsub(/\]/, "\\]", matchstr)
+ print "grep -Hn", matchstr, $2, "| cut -d: -f1,2"
}
' "$TAGFILE" | /bin/sh | pick)
[ "" != "$file" ] && edit "$file"
# Compiler Setup
CC = ./acc
-CFLAGS = -MMD $(INCS)
+CFLAGS = -O2 -MMD $(INCS)
CFLAGS += -Wno-missing-field-initializers -Wno-implicit-fallthrough
# Linker Setup
view->sync_flags |= CURSOR;
if (buf_selsz(BUF) && !extsel) {
buf_selclr(BUF, move);
+ buf_getcol(BUF);
} else {
CSRPOS = bything(BUF, CSRPOS, move);
if (bything == buf_byline)
buf_setcol(BUF);
if (!extsel)
buf_selclr(BUF, RIGHT);
+ /* only update column if not moving vertically */
+ if (bything != buf_byline)
+ buf_getcol(BUF);
}
- /* only update column if not moving vertically */
- if (bything != buf_byline)
- buf_getcol(BUF);
}
static void move_to(View* view, bool extsel, size_t off) {
/* clear any inherited umask(2) value */
umask(0);
- chdir("/");
+ if (chdir("/") < 0){}
close(0), close(1), close(2);
return 0;
}