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

View File

@ -91,6 +91,13 @@ const struct options_table_entry server_options_table[] = {
/* Session options. */
const struct options_table_entry session_options_table[] = {
{ .name = "assume-paste-time",
.type = OPTIONS_TABLE_NUMBER,
.minimum = 0,
.maximum = INT_MAX,
.default_num = 1,
},
{ .name = "base-index",
.type = OPTIONS_TABLE_NUMBER,
.minimum = 0,