|
Karsten Hopp |
c0c7a5 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
c0c7a5 |
Subject: Patch 7.3.421
|
|
Karsten Hopp |
c0c7a5 |
Fcc: outbox
|
|
Karsten Hopp |
c0c7a5 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
c0c7a5 |
Mime-Version: 1.0
|
|
Karsten Hopp |
c0c7a5 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
c0c7a5 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
c0c7a5 |
------------
|
|
Karsten Hopp |
c0c7a5 |
|
|
Karsten Hopp |
c0c7a5 |
Patch 7.3.421
|
|
Karsten Hopp |
c0c7a5 |
Problem: Get E832 when setting 'undofile' in vimrc and there is a file to
|
|
Karsten Hopp |
c0c7a5 |
be edited on the command line. (Toothpik)
|
|
Karsten Hopp |
c0c7a5 |
Solution: Do not try reading the undo file for a file that wasn't loaded.
|
|
Karsten Hopp |
c0c7a5 |
Files: src/option.c
|
|
Karsten Hopp |
c0c7a5 |
|
|
Karsten Hopp |
c0c7a5 |
|
|
Karsten Hopp |
c0c7a5 |
*** ../vim-7.3.420/src/option.c 2012-01-10 22:26:12.000000000 +0100
|
|
Karsten Hopp |
c0c7a5 |
--- src/option.c 2012-01-28 17:55:24.000000000 +0100
|
|
Karsten Hopp |
c0c7a5 |
***************
|
|
Karsten Hopp |
c0c7a5 |
*** 7527,7536 ****
|
|
Karsten Hopp |
c0c7a5 |
{
|
|
Karsten Hopp |
c0c7a5 |
/* When 'undofile' is set globally: for every buffer, otherwise
|
|
Karsten Hopp |
c0c7a5 |
* only for the current buffer: Try to read in the undofile, if
|
|
Karsten Hopp |
c0c7a5 |
! * one exists and the buffer wasn't changed. */
|
|
Karsten Hopp |
c0c7a5 |
if ((curbuf == save_curbuf
|
|
Karsten Hopp |
c0c7a5 |
|| (opt_flags & OPT_GLOBAL) || opt_flags == 0)
|
|
Karsten Hopp |
c0c7a5 |
! && !curbufIsChanged())
|
|
Karsten Hopp |
c0c7a5 |
{
|
|
Karsten Hopp |
c0c7a5 |
u_compute_hash(hash);
|
|
Karsten Hopp |
c0c7a5 |
u_read_undo(NULL, hash, curbuf->b_fname);
|
|
Karsten Hopp |
c0c7a5 |
--- 7527,7537 ----
|
|
Karsten Hopp |
c0c7a5 |
{
|
|
Karsten Hopp |
c0c7a5 |
/* When 'undofile' is set globally: for every buffer, otherwise
|
|
Karsten Hopp |
c0c7a5 |
* only for the current buffer: Try to read in the undofile, if
|
|
Karsten Hopp |
c0c7a5 |
! * one exists and the buffer wasn't changed and the buffer was
|
|
Karsten Hopp |
c0c7a5 |
! * loaded. */
|
|
Karsten Hopp |
c0c7a5 |
if ((curbuf == save_curbuf
|
|
Karsten Hopp |
c0c7a5 |
|| (opt_flags & OPT_GLOBAL) || opt_flags == 0)
|
|
Karsten Hopp |
c0c7a5 |
! && !curbufIsChanged() && curbuf->b_ml.ml_mfp != NULL)
|
|
Karsten Hopp |
c0c7a5 |
{
|
|
Karsten Hopp |
c0c7a5 |
u_compute_hash(hash);
|
|
Karsten Hopp |
c0c7a5 |
u_read_undo(NULL, hash, curbuf->b_fname);
|
|
Karsten Hopp |
c0c7a5 |
*** ../vim-7.3.420/src/version.c 2012-01-26 20:58:21.000000000 +0100
|
|
Karsten Hopp |
c0c7a5 |
--- src/version.c 2012-01-28 18:03:09.000000000 +0100
|
|
Karsten Hopp |
c0c7a5 |
***************
|
|
Karsten Hopp |
c0c7a5 |
*** 716,717 ****
|
|
Karsten Hopp |
c0c7a5 |
--- 716,719 ----
|
|
Karsten Hopp |
c0c7a5 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
c0c7a5 |
+ /**/
|
|
Karsten Hopp |
c0c7a5 |
+ 421,
|
|
Karsten Hopp |
c0c7a5 |
/**/
|
|
Karsten Hopp |
c0c7a5 |
|
|
Karsten Hopp |
c0c7a5 |
--
|
|
Karsten Hopp |
c0c7a5 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
c0c7a5 |
4. Your eyeglasses have a web site burned in on them.
|
|
Karsten Hopp |
c0c7a5 |
|
|
Karsten Hopp |
c0c7a5 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
c0c7a5 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
c0c7a5 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
c0c7a5 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|