4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":startinsert" in a CmdwinEnter autocommand doesn't take immediate
12 effect. (Bradley White)
13 Solution: Put a NOP key in the typeahead buffer. Also avoid that using
14 CTRL-C to go back to the command line moves the cursor left.
15 Files: src/edit.c, src/ex_getln.c
18 *** ../vim-7.0.054/src/edit.c Fri Jun 23 21:36:49 2006
19 --- src/edit.c Wed Aug 16 16:17:29 2006
23 /* Close the cmdline window. */
24 cmdwin_result = K_IGNORE;
25 got_int = FALSE; /* don't stop executing autocommands et al. */
33 compl_matches = ins_compl_make_cyclic();
35 compl_used_match = TRUE;
36 + compl_cont_status = 0;
38 compl_curr_match = compl_first_match;
40 *** ../vim-7.0.054/src/ex_getln.c Sun Apr 30 20:43:17 2006
41 --- src/ex_getln.c Wed Aug 16 16:07:04 2006
45 typestr[0] = cmdwin_type;
47 apply_autocmds(EVENT_CMDWINENTER, typestr, typestr, FALSE, curbuf);
48 + if (restart_edit != 0) /* autocmd with ":startinsert" */
49 + stuffcharReadbuff(K_NOP);
52 i = RedrawingDisabled;
53 *** ../vim-7.0.054/src/version.c Wed Aug 16 15:56:58 2006
54 --- src/version.c Wed Aug 16 16:21:45 2006
58 { /* Add new patch number below this line */
64 hundred-and-one symptoms of being an internet addict:
65 157. You fum through a magazine, you first check to see if it has a web
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///