Hi list.
Attached patch fixed the problem.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r f0cc719cd129 src/ex_getln.c
--- a/src/ex_getln.c Thu May 19 18:26:40 2011 +0200
+++ b/src/ex_getln.c Mon Jun 06 23:40:47 2011 +0900
@@ -3046,7 +3046,7 @@
int len;
/* Locate start of last word in the cmd buffer. */
- for (w = ccline.cmdbuff + ccline.cmdlen; w > ccline.cmdbuff; )
+ for (w = ccline.cmdbuff + ccline.cmdpos; w > ccline.cmdbuff; )
{
#ifdef FEAT_MBYTE
if (has_mbyte)
@@ -3064,7 +3064,7 @@
--w;
}
}
- len = (int)((ccline.cmdbuff + ccline.cmdlen) - w);
+ len = (int)((ccline.cmdbuff + ccline.cmdpos) - w);
if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
p += len;
}