summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-21 16:28:50 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-21 16:28:50 +0100
commite4eda3bc7157932b0bf380fd3fdc1ba8f4438b60 (patch)
tree6174298c138395213d3b0ae47bfeeafc68e6b951 /src/ex_getln.c
parent8f08dab18df6dbf6c4b4973fd2d480e4bffb82d8 (diff)
downloadvim-git-e4eda3bc7157932b0bf380fd3fdc1ba8f4438b60.tar.gz
patch 7.4.933v7.4.933
Problem: Crash when using longest completion match. Solution: Fix array index.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 33d612bfa..0aeb4b8c8 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3704,7 +3704,7 @@ ExpandOne(xp, str, orig, options, mode)
}
else
#endif
- c0 = xp->xp_files[i][len];
+ c0 = xp->xp_files[0][len];
for (i = 1; i < xp->xp_numfiles; ++i)
{
#ifdef FEAT_MBYTE