]>
Commit | Line | Data |
---|---|---|
8f1d9476 | 1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.282 | |
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.3.282 | |
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. | |
14 | (Ben Schmidt) | |
15 | Files: src/ex_getln.c | |
16 | ||
17 | ||
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 | |
20 | *************** | |
21 | *** 1969,1976 **** | |
22 | # endif | |
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; | |
27 | ||
28 | return s; | |
29 | } | |
30 | --- 1969,1980 ---- | |
31 | # endif | |
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; | |
40 | ||
41 | return s; | |
42 | } | |
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 | |
45 | *************** | |
46 | *** 711,712 **** | |
47 | --- 711,714 ---- | |
48 | { /* Add new patch number below this line */ | |
49 | + /**/ | |
50 | + 282, | |
51 | /**/ | |
52 | ||
53 | -- | |
54 | Why don't cannibals eat clowns? | |
55 | Because they taste funny. | |
56 | ||
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 /// |