mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-14 07:49:01 +02:00
save-buffer command, from Tiago Cunha.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-generic.c,v 1.18 2009-01-11 23:05:36 nicm Exp $ */
|
||||
/* $Id: cmd-generic.c,v 1.19 2009-01-11 23:14:57 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
#include "tmux.h"
|
||||
|
||||
#define CMD_FLAGS "dgku"
|
||||
#define CMD_FLAGS "adgku"
|
||||
|
||||
int cmd_do_flags(int, int, int *);
|
||||
size_t cmd_print_flags(char *, size_t, size_t, int);
|
||||
@ -32,6 +32,12 @@ int
|
||||
cmd_do_flags(int opt, int iflags, int *oflags)
|
||||
{
|
||||
switch (opt) {
|
||||
case 'a':
|
||||
if (iflags & CMD_AFLAG) {
|
||||
(*oflags) |= CMD_AFLAG;
|
||||
return (0);
|
||||
}
|
||||
return (-1);
|
||||
case 'd':
|
||||
if (iflags & CMD_DFLAG) {
|
||||
(*oflags) |= CMD_DFLAG;
|
||||
|
Reference in New Issue
Block a user