diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-29 21:18:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-29 21:18:24 +0000 |
commit | e2f98b95c8071f772695602cd4f714dc588eb8e7 (patch) | |
tree | 28442f952f7e5258e2addd8871a4a2930e768c0a /src/edit.c | |
parent | 86ca6e3b8c9c5d909421eb5abc2d81e02d402b49 (diff) | |
download | vim-git-e2f98b95c8071f772695602cd4f714dc588eb8e7.tar.gz |
updated for version 7.0c03v7.0c03
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 5159a34fc..da15010f5 100644 --- a/src/edit.c +++ b/src/edit.c @@ -4497,6 +4497,8 @@ ins_complete(c) if (compl_col >= (colnr_T)startcol) return FAIL; spell_expand_check_cap(compl_col); + /* Need to obtain "line" again, it may have become invalid. */ + line = ml_get(curwin->w_cursor.lnum); compl_length = (int)curs_col - compl_col; compl_pattern = vim_strnsave(line + compl_col, compl_length); if (compl_pattern == NULL) |