If timing between keys is less than (by default) 1 millisecond, assume

the text is being pasted. assume-paste-time option changes the value (0
disables). Based on a diff from Marcin Kulik.
This commit is contained in:
Nicholas Marriott
2013-01-15 22:55:29 +00:00
parent 854e8ae04d
commit bc2e4a36df
4 changed files with 55 additions and 15 deletions

2
tmux.h
View File

@ -1095,6 +1095,7 @@ struct session {
struct timeval creation_time;
struct timeval activity_time;
struct timeval last_activity_time;
u_int sx;
u_int sy;
@ -1707,7 +1708,6 @@ char *paste_print(struct paste_buffer *, size_t);
void paste_send_pane(struct paste_buffer *, struct window_pane *,
const char *, int);
/* clock.c */
extern const char clock_table[14][5][5];
void clock_draw(struct screen_write_ctx *, int, int);