## STAGING
* tide: implement hold mode and tag to enable/disable autoscroll
-* tide: only newline at end of point should send to subprocess
* tide: point should be added to editlog to ensure undo/redo behave appropriately
* tide: tab in point does fcomplete maybe?
-
* fetch: don't exit on rulesets with no launch or exec rules
* picktag: reimplement in C using binary search
* fetch: add option to capture output of command
static View* EditView = NULL;
static int Pty_Fd = -1;
-
-char ReadBuf[BUFFERSZ+1] = {0};
-char ArgsBuf[BUFFERSZ+1] = {0};
-char InputBuf[BUFFERSZ+1] = {0};
-ssize_t ArgsPos = 0;
-ssize_t InputPos = 0;
-
+static char ReadBuf[BUFFERSZ+1] = {0};
+static char ArgsBuf[BUFFERSZ+1] = {0};
+static char InputBuf[BUFFERSZ+1] = {0};
+static ssize_t ArgsPos = 0;
+static ssize_t InputPos = 0;
static enum {
READ_CHAR = 0,
READ_ESC,
read(Pty_Fd, &b, 1);
}
}
- else if (byte == '\n' && buf_inpoint(&(EditView->buffer), EditView->buffer.selection.end-1))
+ else if (byte == '\n' && (EditView->buffer.selection.end == EditView->buffer.point.end))
{
/* get the input string and update the point */
char* str = buf_getsat(&(EditView->buffer), EditView->buffer.point.beg, EditView->buffer.point.end);