aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *);