4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When an autocommand is triggered when a file is dropped on Vim and
12 it produces output, messages from a following command may be
13 scrolled unexpectedly. (David Rennalls)
14 Solution: Save and restore msg_scroll in handle_drop().
18 *** ../vim-6.2.090/src/ex_docmd.c Wed Sep 10 22:41:46 2003
19 --- src/ex_docmd.c Sun Sep 7 14:26:29 2003
22 int split; /* force splitting the window */
31 /* Check whether the current buffer is changed. If so, we will need
32 * to split the current window or data could be lost.
34 int split; /* force splitting the window */
37 + int save_msg_scroll = msg_scroll;
44 /* Check whether the current buffer is changed. If so, we will need
45 * to split the current window or data could be lost.
49 /* do_ecmd() may set need_start_insertmode, but since we never left Insert
50 * mode that is not needed here. */
51 need_start_insertmode = FALSE;
53 + /* Restore msg_scroll, otherwise a following command may cause scrolling
54 + * unexpectedly. The screen will be redrawn by the caller, thus
55 + * msg_scroll being set by displaying a message is irrelevant. */
56 + msg_scroll = save_msg_scroll;
60 *** ../vim-6.2.090/src/version.c Thu Sep 11 21:50:44 2003
61 --- src/version.c Fri Sep 12 19:49:12 2003
65 { /* Add new patch number below this line */
71 Why is "abbreviation" such a long word?
73 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
74 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
75 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
76 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///