Irssi now detects a paste if it reads at least three bytes in a single read;

subsequent reads are associated to the same paste if they happen before
'paste_detect_time' time since the last read. If no read occurs after
'paste_detect_time' time the paste buffer is flushed; if there is at least one
complete line its content is sent as a paste, otherwise it is processed
normally.

Thanks to Emanuele Giaquinta.



git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5121 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Alexander Færøy 2010-02-27 14:57:16 +00:00 committed by ahf
commit 3eea03ccb8
4 changed files with 66 additions and 129 deletions

View file

@ -81,7 +81,7 @@ void term_stop(void);
/* keyboard input handling */
void term_set_input_type(int type);
void term_gets(void);
void term_gets(GArray *buffer, int *line_count);
/* internal */
void term_common_init(void);