|
Karsten Hopp |
a32517 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
a32517 |
Subject: Patch 7.3.512
|
|
Karsten Hopp |
a32517 |
Fcc: outbox
|
|
Karsten Hopp |
a32517 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a32517 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a32517 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
a32517 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a32517 |
------------
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
Patch 7.3.512
|
|
Karsten Hopp |
a32517 |
Problem: undofile() returns a useless name when passed an empty string.
|
|
Karsten Hopp |
a32517 |
Solution: Return an empty string. (Christian Brabandt)
|
|
Karsten Hopp |
a32517 |
Files: src/eval.c
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
*** ../vim-7.3.511/src/eval.c 2012-04-25 18:24:24.000000000 +0200
|
|
Karsten Hopp |
a32517 |
--- src/eval.c 2012-04-30 17:23:26.000000000 +0200
|
|
Karsten Hopp |
a32517 |
***************
|
|
Karsten Hopp |
a32517 |
*** 18259,18269 ****
|
|
Karsten Hopp |
a32517 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
a32517 |
#ifdef FEAT_PERSISTENT_UNDO
|
|
Karsten Hopp |
a32517 |
{
|
|
Karsten Hopp |
a32517 |
! char_u *ffname = FullName_save(get_tv_string(&argvars[0]), FALSE);
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
! if (ffname != NULL)
|
|
Karsten Hopp |
a32517 |
! rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
|
|
Karsten Hopp |
a32517 |
! vim_free(ffname);
|
|
Karsten Hopp |
a32517 |
}
|
|
Karsten Hopp |
a32517 |
#else
|
|
Karsten Hopp |
a32517 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
a32517 |
--- 18259,18279 ----
|
|
Karsten Hopp |
a32517 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
a32517 |
#ifdef FEAT_PERSISTENT_UNDO
|
|
Karsten Hopp |
a32517 |
{
|
|
Karsten Hopp |
a32517 |
! char_u *fname = get_tv_string(&argvars[0]);
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
! if (*fname == NUL)
|
|
Karsten Hopp |
a32517 |
! {
|
|
Karsten Hopp |
a32517 |
! /* If there is no file name there will be no undo file. */
|
|
Karsten Hopp |
a32517 |
! rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
a32517 |
! }
|
|
Karsten Hopp |
a32517 |
! else
|
|
Karsten Hopp |
a32517 |
! {
|
|
Karsten Hopp |
a32517 |
! char_u *ffname = FullName_save(fname, FALSE);
|
|
Karsten Hopp |
a32517 |
!
|
|
Karsten Hopp |
a32517 |
! if (ffname != NULL)
|
|
Karsten Hopp |
a32517 |
! rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
|
|
Karsten Hopp |
a32517 |
! vim_free(ffname);
|
|
Karsten Hopp |
a32517 |
! }
|
|
Karsten Hopp |
a32517 |
}
|
|
Karsten Hopp |
a32517 |
#else
|
|
Karsten Hopp |
a32517 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
a32517 |
*** ../vim-7.3.511/src/version.c 2012-04-30 17:04:47.000000000 +0200
|
|
Karsten Hopp |
a32517 |
--- src/version.c 2012-04-30 17:24:42.000000000 +0200
|
|
Karsten Hopp |
a32517 |
***************
|
|
Karsten Hopp |
a32517 |
*** 716,717 ****
|
|
Karsten Hopp |
a32517 |
--- 716,719 ----
|
|
Karsten Hopp |
a32517 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a32517 |
+ /**/
|
|
Karsten Hopp |
a32517 |
+ 512,
|
|
Karsten Hopp |
a32517 |
/**/
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
--
|
|
Karsten Hopp |
a32517 |
It is illegal for a driver to be blindfolded while operating a vehicle.
|
|
Karsten Hopp |
a32517 |
[real standing law in Alabama, United States of America]
|
|
Karsten Hopp |
a32517 |
|
|
Karsten Hopp |
a32517 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a32517 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a32517 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
a32517 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|