summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-30 12:21:24 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-30 12:21:24 +0200
commita4c8dcbdae63b8fba688db87d9cdf391ae883e62 (patch)
treef0b9fd16f29c1339e2a00f3aecd9b2b90e305c09 /src/ex_getln.c
parent14b6945e27ca175a42550a6a887874303313c19e (diff)
updated for version 7.3.1271v7.3.1271
Problem: Command line completion does not work. Solution: Move setting xp_line down. (Daniel Thau)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 18a708bf98..11571d1946 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -4379,11 +4379,6 @@ set_cmd_context(xp, str, len, col)
int old_char = NUL;
char_u *nextcomm;
- /* Store the string here so that call_user_expand_func() can get to them
- * easily. */
- xp->xp_line = str;
- xp->xp_col = col;
-
/*
* Avoid a UMR warning from Purify, only save the character if it has been
* written before.
@@ -4414,6 +4409,11 @@ set_cmd_context(xp, str, len, col)
while (nextcomm != NULL)
nextcomm = set_one_cmd_context(xp, nextcomm);
+ /* Store the string here so that call_user_expand_func() can get to them
+ * easily. */
+ xp->xp_line = str;
+ xp->xp_col = col;
+
str[col] = old_char;
}