Mercurial > vim
comparison src/ex_getln.c @ 5056:034abed357a1 v7.3.1271
updated for version 7.3.1271
Problem: Command line completion does not work.
Solution: Move setting xp_line down. (Daniel Thau)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 30 Jun 2013 12:21:24 +0200 |
parents | 7aa4e0822dec |
children | cca600e60928 |
comparison
equal
deleted
inserted
replaced
5055:c458ff35497e | 5056:034abed357a1 |
---|---|
4377 int col; /* position of cursor */ | 4377 int col; /* position of cursor */ |
4378 { | 4378 { |
4379 int old_char = NUL; | 4379 int old_char = NUL; |
4380 char_u *nextcomm; | 4380 char_u *nextcomm; |
4381 | 4381 |
4382 /* Store the string here so that call_user_expand_func() can get to them | |
4383 * easily. */ | |
4384 xp->xp_line = str; | |
4385 xp->xp_col = col; | |
4386 | |
4387 /* | 4382 /* |
4388 * Avoid a UMR warning from Purify, only save the character if it has been | 4383 * Avoid a UMR warning from Purify, only save the character if it has been |
4389 * written before. | 4384 * written before. |
4390 */ | 4385 */ |
4391 if (col < len) | 4386 if (col < len) |
4411 } | 4406 } |
4412 else | 4407 else |
4413 #endif | 4408 #endif |
4414 while (nextcomm != NULL) | 4409 while (nextcomm != NULL) |
4415 nextcomm = set_one_cmd_context(xp, nextcomm); | 4410 nextcomm = set_one_cmd_context(xp, nextcomm); |
4411 | |
4412 /* Store the string here so that call_user_expand_func() can get to them | |
4413 * easily. */ | |
4414 xp->xp_line = str; | |
4415 xp->xp_col = col; | |
4416 | 4416 |
4417 str[col] = old_char; | 4417 str[col] = old_char; |
4418 } | 4418 } |
4419 | 4419 |
4420 /* | 4420 /* |