aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2012-09-25 08:07:39 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2012-09-25 08:07:39 +0100
commit149f5bac05584b83778c4803b2f1a54a57d7d84d (patch)
tree8cd323235276ddf4b562894be0e6a82f3be08a82
parent7b189f1ad78e8ad96a6896b2640fc0bbd3003201 (diff)
parent253f1395a03b7b3371799055a7e3a442a8fa7ba6 (diff)
downloadrtmux-149f5bac05584b83778c4803b2f1a54a57d7d84d.tar.gz
rtmux-149f5bac05584b83778c4803b2f1a54a57d7d84d.tar.bz2
rtmux-149f5bac05584b83778c4803b2f1a54a57d7d84d.zip
Merge branch 'master' of ssh://tmux.git.sourceforge.net/gitroot/tmux/tmux
Conflicts: cmd.c format.c osdep-openbsd.c
-rw-r--r--SYNCING6
-rw-r--r--control.c9
-rw-r--r--tmux.h1
3 files changed, 12 insertions, 4 deletions
diff --git a/SYNCING b/SYNCING
index 70e532c1..d32a8c60 100644
--- a/SYNCING
+++ b/SYNCING
@@ -113,11 +113,9 @@ portable:
% git log master..obsd-master
-From there, the merge should be a fast-forward, using the OURS strategy to
-tell git that conflicts coming from OpenBSD respect the existing code in
-tmux where those conflicts wouldn't arise. Hence:
+From there, merge the result in, fixing up any conflicts which might arise.
-% git merge -s ours obsd-master
+% git merge obsd-master
Then ensure things look correct by BULDING the result of that sync:
diff --git a/control.c b/control.c
index 91972261..b5ec6bdb 100644
--- a/control.c
+++ b/control.c
@@ -79,6 +79,15 @@ control_write(struct client *c, const char *fmt, ...)
server_push_stdout(c);
}
+/* Write a buffer, adding a terminal newline. Empties buffer. */
+void
+control_write_buffer(struct client *c, struct evbuffer *buffer)
+{
+ evbuffer_add_buffer(c->stdout_data, buffer);
+ evbuffer_add(c->stdout_data, "\n", 1);
+ server_push_stdout(c);
+}
+
/* Control input callback. Read lines and fire commands. */
void
control_callback(struct client *c, int closed, unused void *data)
diff --git a/tmux.h b/tmux.h
index 249dd5d8..4bfde70e 100644
--- a/tmux.h
+++ b/tmux.h
@@ -2217,6 +2217,7 @@ void clear_signals(int);
/* control.c */
void control_callback(struct client *, int, void*);
void printflike2 control_write(struct client *, const char *, ...);
+void control_write_buffer(struct client *, struct evbuffer *);
/* control-notify.c */
void control_notify_window_layout_changed(struct window *);