Mercurial > vim
changeset 3114:5b53cea62e5d v7.3.328
updated for version 7.3.328
Problem: When command line wraps the cursor may be displayed wrong when
there are multi-byte characters.
Solution: Position the cursor before drawing the text. (Yasuhiro Matsumoto)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 30 Sep 2011 17:46:21 +0200 |
parents | 8d0daeb0f631 |
children | 906ea37adb23 |
files | src/ex_getln.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -2870,6 +2870,7 @@ put_on_cmdline(str, len, redraw) { msg_no_more = TRUE; i = cmdline_row; + cursorcmd(); draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos); /* Avoid clearing the rest of the line too often. */ if (cmdline_row != i || ccline.overstrike)