mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Write error messages for rename. Also tweak some error outputs, and fix -i.
This commit is contained in:
16
server-fn.c
16
server-fn.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server-fn.c,v 1.7 2007-09-29 09:53:25 nicm Exp $ */
|
||||
/* $Id: server-fn.c,v 1.8 2007-09-29 13:22:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -172,6 +172,20 @@ server_draw_client(struct client *c, u_int py_upper, u_int py_lower)
|
||||
buffer_reverse_add(c->out, sizeof hdr);
|
||||
}
|
||||
|
||||
/* Send error message command to client. */
|
||||
void
|
||||
server_write_error(struct client *c, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char *msg;
|
||||
|
||||
va_start(ap, fmt);
|
||||
xvasprintf(&msg, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
server_write_client(c, MSG_ERROR, msg, strlen(msg));
|
||||
xfree(msg);
|
||||
}
|
||||
|
||||
/* Write message command to a client. */
|
||||
void
|
||||
|
Reference in New Issue
Block a user