|
Karsten Hopp |
4fc877 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
4fc877 |
Subject: Patch 7.3.646
|
|
Karsten Hopp |
4fc877 |
Fcc: outbox
|
|
Karsten Hopp |
4fc877 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
4fc877 |
Mime-Version: 1.0
|
|
Karsten Hopp |
4fc877 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
4fc877 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
4fc877 |
------------
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
Patch 7.3.646
|
|
Karsten Hopp |
4fc877 |
Problem: When reloading a buffer the undo file becomes unusable unless ":w"
|
|
Karsten Hopp |
4fc877 |
is executed. (Dmitri Frank)
|
|
Karsten Hopp |
4fc877 |
Solution: After reloading the buffer write the undo file. (Christian
|
|
Karsten Hopp |
4fc877 |
Brabandt)
|
|
Karsten Hopp |
4fc877 |
Files: src/fileio.c
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
*** ../vim-7.3.645/src/fileio.c 2012-07-10 17:14:50.000000000 +0200
|
|
Karsten Hopp |
4fc877 |
--- src/fileio.c 2012-08-29 18:19:44.000000000 +0200
|
|
Karsten Hopp |
4fc877 |
***************
|
|
Karsten Hopp |
4fc877 |
*** 7060,7067 ****
|
|
Karsten Hopp |
4fc877 |
--- 7060,7082 ----
|
|
Karsten Hopp |
4fc877 |
}
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
if (reload)
|
|
Karsten Hopp |
4fc877 |
+ {
|
|
Karsten Hopp |
4fc877 |
/* Reload the buffer. */
|
|
Karsten Hopp |
4fc877 |
buf_reload(buf, orig_mode);
|
|
Karsten Hopp |
4fc877 |
+ #ifdef FEAT_PERSISTENT_UNDO
|
|
Karsten Hopp |
4fc877 |
+ if (buf->b_p_udf && buf->b_ffname != NULL)
|
|
Karsten Hopp |
4fc877 |
+ {
|
|
Karsten Hopp |
4fc877 |
+ char_u hash[UNDO_HASH_SIZE];
|
|
Karsten Hopp |
4fc877 |
+ buf_T *save_curbuf = curbuf;
|
|
Karsten Hopp |
4fc877 |
+
|
|
Karsten Hopp |
4fc877 |
+ /* Any existing undo file is unusable, write it now. */
|
|
Karsten Hopp |
4fc877 |
+ curbuf = buf;
|
|
Karsten Hopp |
4fc877 |
+ u_compute_hash(hash);
|
|
Karsten Hopp |
4fc877 |
+ u_write_undo(NULL, FALSE, buf, hash);
|
|
Karsten Hopp |
4fc877 |
+ curbuf = save_curbuf;
|
|
Karsten Hopp |
4fc877 |
+ }
|
|
Karsten Hopp |
4fc877 |
+ #endif
|
|
Karsten Hopp |
4fc877 |
+ }
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
4fc877 |
/* Trigger FileChangedShell when the file was changed in any way. */
|
|
Karsten Hopp |
4fc877 |
*** ../vim-7.3.645/src/version.c 2012-08-29 16:55:09.000000000 +0200
|
|
Karsten Hopp |
4fc877 |
--- src/version.c 2012-08-29 18:21:07.000000000 +0200
|
|
Karsten Hopp |
4fc877 |
***************
|
|
Karsten Hopp |
4fc877 |
*** 721,722 ****
|
|
Karsten Hopp |
4fc877 |
--- 721,724 ----
|
|
Karsten Hopp |
4fc877 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
4fc877 |
+ /**/
|
|
Karsten Hopp |
4fc877 |
+ 646,
|
|
Karsten Hopp |
4fc877 |
/**/
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
--
|
|
Karsten Hopp |
4fc877 |
An extraordinary TALL KNIGHT in all black (possibly John with Mike on his
|
|
Karsten Hopp |
4fc877 |
shoulders) walks out from the dark trees. He is extremely fierce and
|
|
Karsten Hopp |
4fc877 |
gruesome countenance. He walks towards KING ARTHUR and PATSY, who are
|
|
Karsten Hopp |
4fc877 |
wazzing like mad. (Salopian slang, meaning very scared. almost to the
|
|
Karsten Hopp |
4fc877 |
point of wetting oneself, e.g. before an important football match or
|
|
Karsten Hopp |
4fc877 |
prior to a postering. Salopian slang meaning a beating by the school
|
|
Karsten Hopp |
4fc877 |
praeposters. Sorry about the Salopian slant to this stage direction - Ed.)
|
|
Karsten Hopp |
4fc877 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
4fc877 |
|
|
Karsten Hopp |
4fc877 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
4fc877 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
4fc877 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
4fc877 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|