4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When editing a command line that's longer than available space in
12 the window, the characters at the end are in reverse order.
13 Solution: Increment the insert position even when the command line doesn't
18 *** ../vim-7.1.324/src/ex_getln.c Fri Jun 20 12:55:28 2008
19 --- src/ex_getln.c Fri Jun 20 16:45:55 2008
23 correct_cmdspos(i, c);
25 ! /* If the cmdline doesn't fit, put cursor on last visible char. */
26 if ((ccline.cmdspos += c) >= m)
28 - ccline.cmdpos = i - 1;
34 correct_cmdspos(i, c);
36 ! /* If the cmdline doesn't fit, show cursor on last visible char.
37 ! * Don't move the cursor itself, so we can still append. */
38 if ((ccline.cmdspos += c) >= m)
46 correct_cmdspos(ccline.cmdpos, c);
48 ! /* Stop cursor at the end of the screen */
49 ! if (ccline.cmdspos + c >= m)
51 ! ccline.cmdspos += c;
57 correct_cmdspos(ccline.cmdpos, c);
59 ! /* Stop cursor at the end of the screen, but do increment the
60 ! * insert position, so that entering a very long command
61 ! * works, even though you can't see it. */
62 ! if (ccline.cmdspos + c < m)
63 ! ccline.cmdspos += c;
70 * Do wildcard expansion on the string 'str'.
71 * Chars that should not be expanded must be preceded with a backslash.
72 ! * Return a pointer to alloced memory containing the new string.
73 * Return NULL for failure.
75 * "orig" is the originally expanded string, copied to allocated memory. It
78 * Do wildcard expansion on the string 'str'.
79 * Chars that should not be expanded must be preceded with a backslash.
80 ! * Return a pointer to allocated memory containing the new string.
81 * Return NULL for failure.
83 * "orig" is the originally expanded string, copied to allocated memory. It
87 exmode_active = save_exmode;
89 ! /* Safety check: The old window or buffer was deleted: It's a a bug when
91 if (!win_valid(old_curwin) || !buf_valid(old_curbuf))
95 exmode_active = save_exmode;
97 ! /* Safety check: The old window or buffer was deleted: It's a bug when
99 if (!win_valid(old_curwin) || !buf_valid(old_curbuf))
101 *** ../vim-7.1.324/src/version.c Fri Jun 20 18:06:15 2008
102 --- src/version.c Fri Jun 20 18:27:54 2008
106 { /* Add new patch number below this line */
112 "I can't complain, but sometimes I still do." (Joe Walsh)
114 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
115 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
116 \\\ download, build and distribute -- http://www.A-A-P.org ///
117 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///