]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-199 v7.0.199
authorBram Moolenaar <Bram@vim.org>
Tue, 20 Feb 2007 02:31:20 +0000 (02:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 20 Feb 2007 02:31:20 +0000 (02:31 +0000)
src/edit.c
src/version.c

index 46b496ba4592c7ec7b72815cbeeac730dc58e021..b0e6f45d12784773f55dd0d87c92a3e7237b1825 100644 (file)
@@ -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);
index 7f2739b234fc7362586b61e9902f7ea92f7a7d78..42138ca9b057db3d7863f083676261bb277732ff 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    199,
 /**/
     198,
 /**/