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 using input() and :echo in a loop the displayed text is
12 incorrect. (Benjamin Fritz)
13 Solution: Only restore the cursor position when there is a command line.
18 *** ../vim-7.3.281/src/ex_getln.c 2011-07-27 17:58:42.000000000 +0200
19 --- src/ex_getln.c 2011-08-17 15:57:39.000000000 +0200
23 s = getcmdline(firstc, 1L, 0);
24 restore_cmdline(&save_ccline);
25 ! /* Restore msg_col, the prompt from input() may have changed it. */
26 ! msg_col = msg_col_save;
32 s = getcmdline(firstc, 1L, 0);
33 restore_cmdline(&save_ccline);
34 ! /* Restore msg_col, the prompt from input() may have changed it.
35 ! * But only if called recursively and the commandline is therefore being
36 ! * restored to an old one; if not, the input() prompt stays on the screen,
37 ! * so we need its modified msg_col left intact. */
38 ! if (ccline.cmdbuff != NULL)
39 ! msg_col = msg_col_save;
43 *** ../vim-7.3.281/src/version.c 2011-08-17 15:23:16.000000000 +0200
44 --- src/version.c 2011-08-17 16:24:04.000000000 +0200
48 { /* Add new patch number below this line */
54 Why don't cannibals eat clowns?
55 Because they taste funny.
57 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
58 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
59 \\\ an exciting new programming language -- http://www.Zimbu.org ///
60 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///