1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When repeating the insert of CTRL-V or a digraph the display may
12 not be updated correctly.
13 Solution: Only call edit_unputchar() after edit_putchar(). (Lech Lorens)
17 *** ../vim-7.3.180/src/edit.c 2010-11-10 17:11:29.000000000 +0100
18 --- src/edit.c 2011-05-10 14:16:41.000000000 +0200
25 + int did_putchar = FALSE;
27 /* may need to redraw when no more chars available now */
30 if (redrawing() && !char_avail())
32 edit_putchar('^', TRUE);
35 AppendToRedobuff((char_u *)CTRL_V_STR); /* CTRL-V */
43 ! edit_unputchar(); /* when line fits in 'columns' the '^' is at the start
44 ! of the next line and will not be redrawn */
53 ! /* when the line fits in 'columns' the '^' is at the start of the next
54 ! * line and will not removed by the redraw */
65 + int did_putchar = FALSE;
67 pc_status = PC_STATUS_UNSET;
68 if (redrawing() && !char_avail())
74 edit_putchar('?', TRUE);
77 add_to_showcmd_c(Ctrl_K);
84 ! edit_unputchar(); /* when line fits in 'columns' the '?' is at the start
85 ! of the next line and will not be redrawn */
87 if (IS_SPECIAL(c) || mod_mask) /* special key */
94 ! /* when the line fits in 'columns' the '?' is at the start of the next
95 ! * line and will not be removed by the redraw */
98 if (IS_SPECIAL(c) || mod_mask) /* special key */
106 + did_putchar = FALSE;
107 if (redrawing() && !char_avail())
109 /* may need to redraw when no more chars available now */
113 if (char2cells(c) == 1)
115 - /* first remove the '?', otherwise it's restored when typing
119 edit_putchar(c, TRUE);
121 #ifdef FEAT_CMDL_INFO
125 if (char2cells(c) == 1)
128 edit_putchar(c, TRUE);
129 + did_putchar = TRUE;
131 #ifdef FEAT_CMDL_INFO
138 ! edit_unputchar(); /* when line fits in 'columns' the '?' is at the
139 ! start of the next line and will not be redrawn */
142 AppendToRedobuff((char_u *)CTRL_V_STR);
148 ! /* when the line fits in 'columns' the '?' is at the start of the
149 ! * next line and will not be removed by a redraw */
153 AppendToRedobuff((char_u *)CTRL_V_STR);
154 *** ../vim-7.3.180/src/version.c 2011-05-10 13:38:23.000000000 +0200
155 --- src/version.c 2011-05-10 14:20:40.000000000 +0200
159 { /* Add new patch number below this line */
165 hundred-and-one symptoms of being an internet addict:
166 74. Your most erotic dreams are about cybersex
168 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
169 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
170 \\\ an exciting new programming language -- http://www.Zimbu.org ///
171 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///