That was the wrong fix. MSG_ERROR should set the error and the client should

use the error and exit on MSG_EXIT (it was being handled in the default
case). Undo the last change, move the errstr check into the MSG_EXIT case, and
add a comment.
This commit is contained in:
Nicholas Marriott
2009-09-02 20:15:49 +00:00
parent 7a4bac82d7
commit 459abafcea
2 changed files with 7 additions and 7 deletions

3
tmux.h
View File

@@ -973,8 +973,7 @@ struct client_ctx {
CCTX_DETACH,
CCTX_EXIT,
CCTX_DIED,
CCTX_SHUTDOWN,
CCTX_ERROR
CCTX_SHUTDOWN
} exittype;
const char *errstr;
};