summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2019-11-14 08:00:30 +0000
committernicm <nicm>2019-11-14 08:00:30 +0000
commit2dbf062a891e992b438a0923b9ffd79638014872 (patch)
tree6ff586dad0ebed6bf449b68a3ef0072c96190159 /input.c
parenteb399e64d5c8f1b18e912fdf1c5488d602f78d80 (diff)
Change new-session -A without a session name (that is, no -s option
also) to attach to the best existing session like attach-session rather than creating a new one.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index ee12301c..cec46a99 100644
--- a/input.c
+++ b/input.c
@@ -876,7 +876,7 @@ input_set_state(struct window_pane *wp, const struct input_transition *itr)
void
input_parse(struct window_pane *wp)
{
- struct evbuffer *evb = wp->event->input;
+ struct evbuffer *evb = wp->event->input;
input_parse_buffer(wp, EVBUFFER_DATA(evb), EVBUFFER_LENGTH(evb));
evbuffer_drain(evb, EVBUFFER_LENGTH(evb));