|
Karsten Hopp |
76036a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
76036a |
Subject: Patch 7.4.633
|
|
Karsten Hopp |
76036a |
Fcc: outbox
|
|
Karsten Hopp |
76036a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
76036a |
Mime-Version: 1.0
|
|
Karsten Hopp |
76036a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
76036a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
76036a |
------------
|
|
Karsten Hopp |
76036a |
|
|
Karsten Hopp |
76036a |
Patch 7.4.633
|
|
Karsten Hopp |
76036a |
Problem: After 7.4.630 the problem persists.
|
|
Karsten Hopp |
76036a |
Solution: Also skip redo when calling a user function.
|
|
Karsten Hopp |
76036a |
Files: src/eval.c
|
|
Karsten Hopp |
76036a |
|
|
Karsten Hopp |
76036a |
|
|
Karsten Hopp |
76036a |
*** ../vim-7.4.632/src/eval.c 2015-02-04 23:06:39.453536117 +0100
|
|
Karsten Hopp |
76036a |
--- src/eval.c 2015-02-17 12:37:35.321823749 +0100
|
|
Karsten Hopp |
76036a |
***************
|
|
Karsten Hopp |
76036a |
*** 8693,8705 ****
|
|
Karsten Hopp |
76036a |
error = ERROR_DICT;
|
|
Karsten Hopp |
76036a |
else
|
|
Karsten Hopp |
76036a |
{
|
|
Karsten Hopp |
76036a |
/*
|
|
Karsten Hopp |
76036a |
* Call the user function.
|
|
Karsten Hopp |
76036a |
* Save and restore search patterns, script variables and
|
|
Karsten Hopp |
76036a |
* redo buffer.
|
|
Karsten Hopp |
76036a |
*/
|
|
Karsten Hopp |
76036a |
save_search_patterns();
|
|
Karsten Hopp |
76036a |
! saveRedobuff();
|
|
Karsten Hopp |
76036a |
++fp->uf_calls;
|
|
Karsten Hopp |
76036a |
call_user_func(fp, argcount, argvars, rettv,
|
|
Karsten Hopp |
76036a |
firstline, lastline,
|
|
Karsten Hopp |
76036a |
--- 8693,8711 ----
|
|
Karsten Hopp |
76036a |
error = ERROR_DICT;
|
|
Karsten Hopp |
76036a |
else
|
|
Karsten Hopp |
76036a |
{
|
|
Karsten Hopp |
76036a |
+ int did_save_redo = FALSE;
|
|
Karsten Hopp |
76036a |
+
|
|
Karsten Hopp |
76036a |
/*
|
|
Karsten Hopp |
76036a |
* Call the user function.
|
|
Karsten Hopp |
76036a |
* Save and restore search patterns, script variables and
|
|
Karsten Hopp |
76036a |
* redo buffer.
|
|
Karsten Hopp |
76036a |
*/
|
|
Karsten Hopp |
76036a |
save_search_patterns();
|
|
Karsten Hopp |
76036a |
! if (!ins_compl_active())
|
|
Karsten Hopp |
76036a |
! {
|
|
Karsten Hopp |
76036a |
! saveRedobuff();
|
|
Karsten Hopp |
76036a |
! did_save_redo = TRUE;
|
|
Karsten Hopp |
76036a |
! }
|
|
Karsten Hopp |
76036a |
++fp->uf_calls;
|
|
Karsten Hopp |
76036a |
call_user_func(fp, argcount, argvars, rettv,
|
|
Karsten Hopp |
76036a |
firstline, lastline,
|
|
Karsten Hopp |
76036a |
***************
|
|
Karsten Hopp |
76036a |
*** 8709,8715 ****
|
|
Karsten Hopp |
76036a |
/* Function was unreferenced while being used, free it
|
|
Karsten Hopp |
76036a |
* now. */
|
|
Karsten Hopp |
76036a |
func_free(fp);
|
|
Karsten Hopp |
76036a |
! restoreRedobuff();
|
|
Karsten Hopp |
76036a |
restore_search_patterns();
|
|
Karsten Hopp |
76036a |
error = ERROR_NONE;
|
|
Karsten Hopp |
76036a |
}
|
|
Karsten Hopp |
76036a |
--- 8715,8722 ----
|
|
Karsten Hopp |
76036a |
/* Function was unreferenced while being used, free it
|
|
Karsten Hopp |
76036a |
* now. */
|
|
Karsten Hopp |
76036a |
func_free(fp);
|
|
Karsten Hopp |
76036a |
! if (did_save_redo)
|
|
Karsten Hopp |
76036a |
! restoreRedobuff();
|
|
Karsten Hopp |
76036a |
restore_search_patterns();
|
|
Karsten Hopp |
76036a |
error = ERROR_NONE;
|
|
Karsten Hopp |
76036a |
}
|
|
Karsten Hopp |
76036a |
*** ../vim-7.4.632/src/version.c 2015-02-17 12:17:10.837775002 +0100
|
|
Karsten Hopp |
76036a |
--- src/version.c 2015-02-17 12:38:41.920954954 +0100
|
|
Karsten Hopp |
76036a |
***************
|
|
Karsten Hopp |
76036a |
*** 743,744 ****
|
|
Karsten Hopp |
76036a |
--- 743,746 ----
|
|
Karsten Hopp |
76036a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
76036a |
+ /**/
|
|
Karsten Hopp |
76036a |
+ 633,
|
|
Karsten Hopp |
76036a |
/**/
|
|
Karsten Hopp |
76036a |
|
|
Karsten Hopp |
76036a |
--
|
|
Karsten Hopp |
76036a |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
76036a |
242. You turn down a better-paying job because it doesn't come with
|
|
Karsten Hopp |
76036a |
a free e-mail account.
|
|
Karsten Hopp |
76036a |
|
|
Karsten Hopp |
76036a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
76036a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
76036a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
76036a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|