Hi

I found out the mismatch in the save-buffer command.  The usage is following.

$ tmux list-command | grep save-buffer
save-buffer [-a] [-b buffer-index]

But "tmux save-buffer" outputs the usage, and returns 1.

$ tmux save-buffer
usage: save-buffer [-a] [-b buffer-index]
$ echo $?
1

It looks like the save-buffer implementation having a file argument.
Attached patch fixes this problem.
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index b451870..8e9fde2 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -33,7 +33,7 @@ int	cmd_save_buffer_exec(struct cmd *, struct cmd_ctx *);
 const struct cmd_entry cmd_save_buffer_entry = {
 	"save-buffer", "saveb",
 	"ab:", 1, 1,
-	"[-a] " CMD_BUFFER_USAGE,
+	"[-a] " CMD_BUFFER_USAGE " file",
 	0,
 	NULL,
 	NULL,
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to