To: vim-dev@vim.org Subject: Patch 6.1.242 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.242 Problem: When pasting a large number of lines on the command line it is not possible to interrupt. (Jean Jordaan) Solution: Check for an interrupt after each pasted line. Files: src/ops.c *** ../vim61.241/src/ops.c Sun Oct 27 20:32:20 2002 --- src/ops.c Sun Oct 27 20:29:17 2002 *************** *** 1407,1412 **** --- 1407,1418 ---- /* insert ^M between lines and after last line if type is MLINE */ if (y_current->y_type == MLINE || i < y_current->y_size - 1) cmdline_paste_str((char_u *)"\r", literally); + + /* Check for CTRL-C, in case someone tries to paste a few thousand + * lines and gets bored. */ + ui_breakcheck(); + if (got_int) + return FAIL; } return OK; } *** ../vim61.241/src/version.c Sun Oct 27 20:52:35 2002 --- src/version.c Sun Oct 27 20:54:00 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 242, /**/ -- Q: Is selling software the same as selling hardware? A: No, good hardware is sold new, good software has already been used by many. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///