summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-03-09 10:41:13 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-03-09 10:41:13 +0100
commit35785a5e053e0ccd4ec36d67f2a374ce1c0673d0 (patch)
treec2c3920e8cdeccdfa541c4b0e60183d04af803ee /src/core/wee-command.c
parent1102cfd317f4c73f0012cfdf0c68d366faab8dea (diff)
downloadweechat-35785a5e053e0ccd4ec36d67f2a374ce1c0673d0.zip
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
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c4
1 files changed, 3 insertions, 1 deletions
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 */