mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-15 00:02:36 +02:00
Remove scroll mode which is now redundant, copy mode should be used instead.
The = key binding now does nothing.
This commit is contained in:
@ -24,19 +24,35 @@
|
||||
* Enter copy mode.
|
||||
*/
|
||||
|
||||
void cmd_copy_mode_init(struct cmd *, int);
|
||||
int cmd_copy_mode_exec(struct cmd *, struct cmd_ctx *);
|
||||
|
||||
const struct cmd_entry cmd_copy_mode_entry = {
|
||||
"copy-mode", NULL,
|
||||
"[-u] " CMD_TARGET_PANE_USAGE,
|
||||
0, CMD_CHFLAG('u'),
|
||||
cmd_target_init,
|
||||
cmd_copy_mode_init,
|
||||
cmd_target_parse,
|
||||
cmd_copy_mode_exec,
|
||||
cmd_target_free,
|
||||
NULL
|
||||
};
|
||||
|
||||
void
|
||||
cmd_copy_mode_init(struct cmd *self, int key)
|
||||
{
|
||||
struct cmd_target_data *data;
|
||||
|
||||
cmd_target_init(self, key);
|
||||
data = self->data;
|
||||
|
||||
switch (key) {
|
||||
case KEYC_PPAGE:
|
||||
data->chflags |= CMD_CHFLAG('u');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
cmd_copy_mode_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
{
|
||||
|
Reference in New Issue
Block a user