* Wily-like rc file for registering builtins
* Case insensitive search
-* Ctrl+Up,Down requires two undos to revert.
-* Ctrl+Up,Down with non line selection should track column
* use transaction ids to only mark buffer dirty when it really is
* 100% coverage with unit and unit-integration tests
* tab inserts dont coalesce like one would expect
Maybe think about addressing these later:
-* add current dir to path
-* add support for guidefiles
-* Shift+Insert should insert primary selection
-* Find shortcut should select previous word if current char is newline
+* add current dir to path]'\\\''''''''''''''''''''''''''''' char is newline
# Auxillary Programs
size_t off = buf_selbeg(BUF);
size_t n = (TabWidth - ((off - buf_bol(BUF, off)) % TabWidth));
for (; n > 0; n--) buf_putc(BUF, ' ');
+ } else if (CopyIndent && rune == '\n') {
+ size_t off = buf_selbeg(BUF);
+ size_t beg = buf_bol(BUF, off-1), end = beg;
+ for (; end < buf_end(BUF) && (' ' == buf_getrat(BUF, end) || '\t' == buf_getrat(BUF, end)); end++);
+ buf_putc(BUF, rune);
+ for (; beg < end; beg++)
+ buf_putc(BUF, buf_getrat(BUF, beg));
} else {
buf_putc(BUF, rune);
}