]>
Commit | Line | Data |
---|---|---|
6ac11130 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.322 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.2.322 | |
11 | Problem: Wrong indenting in virtual replace mode with CTRL-Y below a short | |
12 | line. | |
13 | Solution: Check for character to be NUL. (suggested by Lech Lorens) | |
14 | Files: src/edit.c | |
15 | ||
16 | ||
17 | *** ../vim-7.2.321/src/edit.c 2009-11-17 17:40:34.000000000 +0100 | |
18 | --- src/edit.c 2009-12-24 15:18:23.000000000 +0100 | |
19 | *************** | |
20 | *** 7397,7402 **** | |
21 | --- 7397,7406 ---- | |
22 | int icase; | |
23 | int i; | |
24 | ||
25 | + if (keytyped == NUL) | |
26 | + /* Can happen with CTRL-Y and CTRL-E on a short line. */ | |
27 | + return FALSE; | |
28 | + | |
29 | #ifdef FEAT_EVAL | |
30 | if (*curbuf->b_p_inde != NUL) | |
31 | look = curbuf->b_p_indk; /* 'indentexpr' set: use 'indentkeys' */ | |
32 | *** ../vim-7.2.321/src/version.c 2009-12-24 15:00:31.000000000 +0100 | |
33 | --- src/version.c 2009-12-24 15:44:46.000000000 +0100 | |
34 | *************** | |
35 | *** 683,684 **** | |
36 | --- 683,686 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 322, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | hundred-and-one symptoms of being an internet addict: | |
44 | 45. You buy a Captain Kirk chair with a built-in keyboard and mouse. | |
45 | ||
46 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
47 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
48 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
49 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |