• R/O
  • SSH

vim: コミット

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


コミットメタ情報

リビジョンf12d38ee49de595d11efb50674bccfe0417c7063 (tree)
日時2007-06-19 22:36:52
作者vimboss
コミッターvimboss

ログメッセージ

updated for version 7.1-006

変更サマリ

差分

diff -r 87a777aea899 -r f12d38ee49de src/buffer.c
--- a/src/buffer.c Tue Jun 19 10:56:05 2007 +0000
+++ b/src/buffer.c Tue Jun 19 13:36:52 2007 +0000
@@ -171,6 +171,13 @@
171171 /* Put the cursor on the first line. */
172172 curwin->w_cursor.lnum = 1;
173173 curwin->w_cursor.col = 0;
174+
175+ /* Set or reset 'modified' before executing autocommands, so that
176+ * it can be changed there. */
177+ if (!readonlymode && !bufempty())
178+ changed();
179+ else if (retval != FAIL)
180+ unchanged(curbuf, FALSE);
174181 #ifdef FEAT_AUTOCMD
175182 # ifdef FEAT_EVAL
176183 apply_autocmds_retval(EVENT_STDINREADPOST, NULL, NULL, FALSE,
@@ -194,16 +201,16 @@
194201 /* When reading stdin, the buffer contents always needs writing, so set
195202 * the changed flag. Unless in readonly mode: "ls | gview -".
196203 * When interrupted and 'cpoptions' contains 'i' set changed flag. */
197- if ((read_stdin && !readonlymode && !bufempty())
204+ if ((got_int && vim_strchr(p_cpo, CPO_INTMOD) != NULL)
198205 #ifdef FEAT_AUTOCMD
199206 || modified_was_set /* ":set modified" used in autocmd */
200207 # ifdef FEAT_EVAL
201208 || (aborting() && vim_strchr(p_cpo, CPO_INTMOD) != NULL)
202209 # endif
203210 #endif
204- || (got_int && vim_strchr(p_cpo, CPO_INTMOD) != NULL))
211+ )
205212 changed();
206- else if (retval != FAIL)
213+ else if (retval != FAIL && !read_stdin)
207214 unchanged(curbuf, FALSE);
208215 save_file_ff(curbuf); /* keep this fileformat */
209216
diff -r 87a777aea899 -r f12d38ee49de src/version.c
--- a/src/version.c Tue Jun 19 10:56:05 2007 +0000
+++ b/src/version.c Tue Jun 19 13:36:52 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 6,
671+/**/
670672 5,
671673 /**/
672674 4,
旧リポジトリブラウザで表示