# HG changeset patch # User vimboss # Date 1171938680 0 # Node ID ec7a570696ac0e50147e2419d8b269ccfb75f25e # Parent 25154b22dc967b158645be9cb87017f548ee5446 updated for version 7.0-199 diff --git a/src/edit.c b/src/edit.c --- 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 --- 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,