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 the second argument of input() contains a CR the text up to
12 that is used without asking the user. (Yasuhiro Matsumoto)
13 Solution: Change CR, NL and ESC in the text to a space.
17 *** ../vim-7.3.167/src/getchar.c 2011-03-22 13:07:19.000000000 +0100
18 --- src/getchar.c 2011-04-28 14:50:26.000000000 +0200
23 * Stuff "s" into the stuff buffer, leaving special key codes unmodified and
24 * escaping other K_SPECIAL and CSI bytes.
25 + * Change CR, LF and ESC into a space.
35 if (*s == K_SPECIAL && s[1] != NUL && s[2] != NUL)
42 ! stuffcharReadbuff(mb_ptr2char_adv(&s));
44 ! stuffcharReadbuff(*s++);
55 ! c = mb_ptr2char_adv(&s);
59 + if (c == CAR || c == NL || c == ESC)
61 + stuffcharReadbuff(c);
66 *** ../vim-7.3.167/src/version.c 2011-04-28 17:27:05.000000000 +0200
67 --- src/version.c 2011-04-28 17:28:36.000000000 +0200
71 { /* Add new patch number below this line */
77 Everyone has a photographic memory. Some don't have film.
79 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
80 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81 \\\ an exciting new programming language -- http://www.Zimbu.org ///
82 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///