From 35785a5e053e0ccd4ec36d67f2a374ce1c0673d0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 9 Mar 2012 10:41:13 +0100 Subject: core: improve and fix bugs on standard paste and bracketed paste Changes: - wait control sequence for end of bracketed paste (and only after, check if we should ask confirmation to user) - add option weechat.look.paste_bracketed_timer_delay to force the end of bracketed paste if the control sequence for end of bracketed paste was not received in time - in bracketed paste mode, with paste_max_lines=1, do not ask confirmation for one line (ask for one line only if paste_max_lines=0) - fix bugs with mintty: bracketed paste should be ok every time (even if some codes are sometimes partially received, WeeChat will now handle that properly); the standard paste often fails (due to bug in mintty, which sends paste very slowly to remote app); so the bracketed paste mode is highly recommended with mintty - after paste in bracketed paste mode, the undo key (ctrl+"_" by default) will undo whole paste, not chars one by one --- src/core/wee-command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/wee-command.c') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 6445918f2..d92a8dfe2 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -2394,7 +2394,9 @@ COMMAND_CALLBACK(input) else if (string_strcasecmp (argv[1], "redo") == 0) gui_input_redo (buffer); else if (string_strcasecmp (argv[1], "paste_start") == 0) - gui_key_paste_bracketed_start (); + { + /* do nothing here */ + } else if (string_strcasecmp (argv[1], "paste_stop") == 0) { /* do nothing here */ -- cgit v1.2.3