summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-09-30 17:46:21 +0200
committerBram Moolenaar <Bram@vim.org>2011-09-30 17:46:21 +0200
commit73dc59aad86cd3e191b148ac367bf86daa42241c (patch)
tree078f4d51320981360ba82bd0d8966cc4e6edb1fb /src/ex_getln.c
parent8f535582ad8fd706502bee619a19bbb29a981d9d (diff)
downloadvim-git-73dc59aad86cd3e191b148ac367bf86daa42241c.tar.gz
updated for version 7.3.328v7.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)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index da03a0494..97c122da7 100644
--- 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)