diff options
author | nicm <nicm> | 2015-05-08 16:18:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-05-08 16:18:04 +0000 |
commit | c4a4bd6ac5748939c7c17beba9e14bee5929c552 (patch) | |
tree | 015353e19d24a55e9da47a7acf3a8faee09a832f /cmd-capture-pane.c | |
parent | 879de25583a5a0bce57bd816ced96e0caf62c436 (diff) | |
download | rtmux-c4a4bd6ac5748939c7c17beba9e14bee5929c552.tar.gz rtmux-c4a4bd6ac5748939c7c17beba9e14bee5929c552.tar.bz2 rtmux-c4a4bd6ac5748939c7c17beba9e14bee5929c552.zip |
Move input parser structs into input.c (removing fairly useless
saved_cursor_[xy] formats as a side-effect).
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r-- | cmd-capture-pane.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c index b44ebe9d..a348e155 100644 --- a/cmd-capture-pane.c +++ b/cmd-capture-pane.c @@ -57,15 +57,17 @@ char * cmd_capture_pane_pending(struct args *args, struct window_pane *wp, size_t *len) { - char *buf, *line, tmp[5]; - size_t linelen; - u_int i; + struct evbuffer *pending; + char *buf, *line, tmp[5]; + size_t linelen; + u_int i; - if (wp->ictx.since_ground == NULL) + pending = input_pending(wp); + if (pending == NULL) return (xstrdup("")); - line = EVBUFFER_DATA(wp->ictx.since_ground); - linelen = EVBUFFER_LENGTH(wp->ictx.since_ground); + line = EVBUFFER_DATA(pending); + linelen = EVBUFFER_LENGTH(pending); buf = xstrdup(""); if (args_has(args, 'C')) { |