]>
Commit | Line | Data |
---|---|---|
215db38d AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.235 | |
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.235 | |
11 | Problem: Using CTRL-O z= in Insert mode has a delay before redrawing. | |
12 | Solution: Reset msg_didout and msg_scroll. | |
13 | Files: src/misc1.c, src/spell.c | |
14 | ||
15 | ||
16 | *** ../vim-7.2.234/src/misc1.c 2009-07-14 21:40:30.000000000 +0200 | |
17 | --- src/misc1.c 2009-07-14 15:51:55.000000000 +0200 | |
18 | *************** | |
19 | *** 3276,3281 **** | |
20 | --- 3276,3282 ---- | |
21 | cmdline_row = msg_row - 1; | |
22 | need_wait_return = FALSE; | |
23 | msg_didany = FALSE; | |
24 | + msg_didout = FALSE; | |
25 | } | |
26 | else | |
27 | cmdline_row = save_cmdline_row; | |
28 | *** ../vim-7.2.234/src/spell.c 2009-05-17 13:30:58.000000000 +0200 | |
29 | --- src/spell.c 2009-07-14 15:57:55.000000000 +0200 | |
30 | *************** | |
31 | *** 10252,10257 **** | |
32 | --- 10252,10258 ---- | |
33 | int limit; | |
34 | int selected = count; | |
35 | int badlen = 0; | |
36 | + int msg_scroll_save = msg_scroll; | |
37 | ||
38 | if (no_spell_checking(curwin)) | |
39 | return; | |
40 | *************** | |
41 | *** 10416,10422 **** | |
42 | selected = prompt_for_number(&mouse_used); | |
43 | if (mouse_used) | |
44 | selected -= lines_left; | |
45 | ! lines_left = Rows; /* avoid more prompt */ | |
46 | } | |
47 | ||
48 | if (selected > 0 && selected <= sug.su_ga.ga_len && u_save_cursor() == OK) | |
49 | --- 10417,10425 ---- | |
50 | selected = prompt_for_number(&mouse_used); | |
51 | if (mouse_used) | |
52 | selected -= lines_left; | |
53 | ! lines_left = Rows; /* avoid more prompt */ | |
54 | ! /* don't delay for 'smd' in normal_cmd() */ | |
55 | ! msg_scroll = msg_scroll_save; | |
56 | } | |
57 | ||
58 | if (selected > 0 && selected <= sug.su_ga.ga_len && u_save_cursor() == OK) | |
59 | *************** | |
60 | *** 10441,10447 **** | |
61 | } | |
62 | ||
63 | /* Replace the word. */ | |
64 | ! p = alloc((unsigned)STRLEN(line) - stp->st_orglen + stp->st_wordlen + 1); | |
65 | if (p != NULL) | |
66 | { | |
67 | c = (int)(sug.su_badptr - line); | |
68 | --- 10444,10451 ---- | |
69 | } | |
70 | ||
71 | /* Replace the word. */ | |
72 | ! p = alloc((unsigned)STRLEN(line) - stp->st_orglen | |
73 | ! + stp->st_wordlen + 1); | |
74 | if (p != NULL) | |
75 | { | |
76 | c = (int)(sug.su_badptr - line); | |
77 | *** ../vim-7.2.234/src/version.c 2009-07-14 21:40:30.000000000 +0200 | |
78 | --- src/version.c 2009-07-22 11:00:34.000000000 +0200 | |
79 | *************** | |
80 | *** 678,679 **** | |
81 | --- 678,681 ---- | |
82 | { /* Add new patch number below this line */ | |
83 | + /**/ | |
84 | + 235, | |
85 | /**/ | |
86 | ||
87 | -- | |
88 | From "know your smileys": | |
89 | |-( Contact lenses, but has lost them | |
90 | ||
91 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
92 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
93 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
94 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |