• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修訂3ee896333e3eebba8a5e10e04649f1bd20e98770 (tree)
時間2008-04-02 00:14:36
作者vimboss
Commitervimboss

Log Message

updated for version 7.1-290

Change Summary

差異

diff -r b76637e5ace1 -r 3ee896333e3e src/spell.c
--- a/src/spell.c Tue Apr 01 12:53:43 2008 +0000
+++ b/src/spell.c Tue Apr 01 15:14:36 2008 +0000
@@ -2268,6 +2268,8 @@
22682268 /*
22692269 * For spell checking: concatenate the start of the following line "line" into
22702270 * "buf", blanking-out special characters. Copy less then "maxlen" bytes.
2271+ * Keep the blanks at the start of the next line, this is used in win_line()
2272+ * to skip those bytes if the word was OK.
22712273 */
22722274 void
22732275 spell_cat_line(buf, line, maxlen)
@@ -2284,12 +2286,14 @@
22842286
22852287 if (*p != NUL)
22862288 {
2287- *buf = ' ';
2288- vim_strncpy(buf + 1, line, maxlen - 2);
2289- n = (int)(p - line);
2290- if (n >= maxlen)
2291- n = maxlen - 1;
2292- vim_memset(buf + 1, ' ', n);
2289+ /* Only worth concatenating if there is something else than spaces to
2290+ * concatenate. */
2291+ n = (int)(p - line) + 1;
2292+ if (n < maxlen - 1)
2293+ {
2294+ vim_memset(buf, ' ', n);
2295+ vim_strncpy(buf + n, p, maxlen - 1 - n);
2296+ }
22932297 }
22942298 }
22952299
diff -r b76637e5ace1 -r 3ee896333e3e src/version.c
--- a/src/version.c Tue Apr 01 12:53:43 2008 +0000
+++ b/src/version.c Tue Apr 01 15:14:36 2008 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 290,
671+/**/
670672 289,
671673 /**/
672674 288,
Show on old repository browser