diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-02-20 02:31:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-02-20 02:31:20 +0000 |
commit | 09a16b5f09eaf11d28d8b33cdd6c410c0f40cd5a (patch) | |
tree | d4a1281da580db595030c40f358fe51fc21c30c2 | |
parent | 77f66d6c8de44c55bb02c63f0693c50912277f06 (diff) | |
download | vim-git-09a16b5f09eaf11d28d8b33cdd6c410c0f40cd5a.tar.gz |
updated for version 7.0-199v7.0.199
-rw-r--r-- | src/edit.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c index 46b496ba4..b0e6f45d1 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3448,11 +3448,16 @@ ins_compl_prep(c) } else { + int prev_col = curwin->w_cursor.col; + /* put the cursor on the last char, for 'tw' formatting */ - curwin->w_cursor.col--; + if (prev_col > 0) + dec_cursor(); if (stop_arrow() == OK) insertchar(NUL, 0, -1); - curwin->w_cursor.col++; + if (prev_col > 0 + && ml_get_curline()[curwin->w_cursor.col] != NUL) + inc_cursor(); } auto_format(FALSE, TRUE); diff --git a/src/version.c b/src/version.c index 7f2739b23..42138ca9b 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 199, +/**/ 198, /**/ 197, |