To: vim-dev@vim.org Subject: Patch 6.1.225 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.225 Problem: Using in Insert mode has a delay when starting "vim -u NONE" and ":set nocp hidden". (Emmanuel) do_ecmd() uses fileinfo(), the redraw is done after a delay to give the user time to read the message. Solution: Put the message from fileio() in "keep_msg", so that the redraw is done before the delay (still needed to avoid the mode message overwrites the fileinfo() message). Files: src/buffer.c *** ../vim61.224/src/buffer.c Sun Oct 13 20:08:13 2002 --- src/buffer.c Mon Oct 14 20:30:25 2002 *************** *** 2582,2588 **** msg_scroll = n; } else ! msg_trunc_attr(buffer, FALSE, 0); vim_free(buffer); } --- 2582,2600 ---- msg_scroll = n; } else ! { ! p = msg_trunc_attr(buffer, FALSE, 0); ! if (restart_edit != 0 || (msg_scrolled && !need_wait_return)) ! { ! /* Need to repeat the message after redrawing when: ! * - When restart_edit is set (otherwise there will be a delay ! * before redrawing). ! * - When the screen was scrolled but there is no wait-return ! * prompt. */ ! set_keep_msg(p); ! keep_msg_attr = 0; ! } ! } vim_free(buffer); } *** ../vim61.224/src/version.c Mon Oct 14 20:20:44 2002 --- src/version.c Mon Oct 14 20:37:56 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 225, /**/ -- hundred-and-one symptoms of being an internet addict: 219. Your spouse has his or her lawyer deliver the divorce papers... via e-mail. /// 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 ///