]>
Commit | Line | Data |
---|---|---|
f3c378e8 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.114 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.114 | |
11 | Problem: When aborting an insert with CTRL-C an extra undo point is | |
12 | created in the GUI. (Yukihiro Nakadaira) | |
13 | Solution: Call gotchars() only when advancing. | |
14 | Files: src/getchar.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.113/src/getchar.c Tue Sep 5 12:57:14 2006 | |
18 | --- src/getchar.c Tue Sep 26 17:44:45 2006 | |
19 | *************** | |
20 | *** 1960,1969 **** | |
21 | c = Ctrl_C; | |
22 | flush_buffers(TRUE); /* flush all typeahead */ | |
23 | ||
24 | ! /* Also record this character, it might be needed to | |
25 | ! * get out of Insert mode. */ | |
26 | ! *typebuf.tb_buf = c; | |
27 | ! gotchars(typebuf.tb_buf, 1); | |
28 | cmd_silent = FALSE; | |
29 | ||
30 | break; | |
31 | --- 1962,1974 ---- | |
32 | c = Ctrl_C; | |
33 | flush_buffers(TRUE); /* flush all typeahead */ | |
34 | ||
35 | ! if (advance) | |
36 | ! { | |
37 | ! /* Also record this character, it might be needed to | |
38 | ! * get out of Insert mode. */ | |
39 | ! *typebuf.tb_buf = c; | |
40 | ! gotchars(typebuf.tb_buf, 1); | |
41 | ! } | |
42 | cmd_silent = FALSE; | |
43 | ||
44 | break; | |
45 | *** ../vim-7.0.113/src/version.c Tue Oct 3 15:22:00 2006 | |
46 | --- src/version.c Tue Oct 3 15:34:14 2006 | |
47 | *************** | |
48 | *** 668,669 **** | |
49 | --- 668,671 ---- | |
50 | { /* Add new patch number below this line */ | |
51 | + /**/ | |
52 | + 114, | |
53 | /**/ | |
54 | ||
55 | -- | |
56 | Sometimes you can protect millions of dollars in your budget simply by buying | |
57 | a bag of cookies, dropping it on the budget anylyst's desk, and saying | |
58 | something deeply personal such as "How was your weekend, big guy?" | |
59 | (Scott Adams - The Dilbert principle) | |
60 | ||
61 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
62 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
63 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
64 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |