|
|
073263 |
To: vim_dev@googlegroups.com
|
|
|
073263 |
Subject: Patch 7.4.556
|
|
|
073263 |
Fcc: outbox
|
|
|
073263 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
073263 |
Mime-Version: 1.0
|
|
|
073263 |
Content-Type: text/plain; charset=UTF-8
|
|
|
073263 |
Content-Transfer-Encoding: 8bit
|
|
|
073263 |
------------
|
|
|
073263 |
|
|
|
073263 |
Patch 7.4.556
|
|
|
073263 |
Problem: Failed commands in Python interface not handled correctly.
|
|
|
073263 |
Solution: Restore window and buffer on failure.
|
|
|
073263 |
Files: src/if_py_both.h
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.555/src/if_py_both.h 2014-08-29 13:49:48.678436915 +0200
|
|
|
073263 |
--- src/if_py_both.h 2014-09-19 14:21:33.474404353 +0200
|
|
|
073263 |
***************
|
|
|
073263 |
*** 3172,3177 ****
|
|
|
073263 |
--- 3172,3178 ----
|
|
|
073263 |
if (switch_win(&save_curwin, &save_curtab, (win_T *)from,
|
|
|
073263 |
win_find_tabpage((win_T *)from), FALSE) == FAIL)
|
|
|
073263 |
{
|
|
|
073263 |
+ restore_win(save_curwin, save_curtab, TRUE);
|
|
|
073263 |
if (VimTryEnd())
|
|
|
073263 |
return -1;
|
|
|
073263 |
PyErr_SET_VIM(N_("problem while switching windows"));
|
|
|
073263 |
***************
|
|
|
073263 |
*** 4032,4040 ****
|
|
|
073263 |
win_T *wp;
|
|
|
073263 |
tabpage_T *tp;
|
|
|
073263 |
|
|
|
073263 |
! if (find_win_for_buf(buf, &wp, &tp) == FAIL
|
|
|
073263 |
! || switch_win(save_curwinp, save_curtabp, wp, tp, TRUE) == FAIL)
|
|
|
073263 |
switch_buffer(save_curbufp, buf);
|
|
|
073263 |
}
|
|
|
073263 |
|
|
|
073263 |
static void
|
|
|
073263 |
--- 4033,4045 ----
|
|
|
073263 |
win_T *wp;
|
|
|
073263 |
tabpage_T *tp;
|
|
|
073263 |
|
|
|
073263 |
! if (find_win_for_buf(buf, &wp, &tp) == FAIL)
|
|
|
073263 |
switch_buffer(save_curbufp, buf);
|
|
|
073263 |
+ else if (switch_win(save_curwinp, save_curtabp, wp, tp, TRUE) == FAIL)
|
|
|
073263 |
+ {
|
|
|
073263 |
+ restore_win(*save_curwinp, *save_curtabp, TRUE);
|
|
|
073263 |
+ switch_buffer(save_curbufp, buf);
|
|
|
073263 |
+ }
|
|
|
073263 |
}
|
|
|
073263 |
|
|
|
073263 |
static void
|
|
|
073263 |
*** ../vim-7.4.555/src/version.c 2014-12-17 14:42:42.990240206 +0100
|
|
|
073263 |
--- src/version.c 2014-12-17 14:44:33.304877367 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 743,744 ****
|
|
|
073263 |
--- 743,746 ----
|
|
|
073263 |
{ /* Add new patch number below this line */
|
|
|
073263 |
+ /**/
|
|
|
073263 |
+ 556,
|
|
|
073263 |
/**/
|
|
|
073263 |
|
|
|
073263 |
--
|
|
|
073263 |
hundred-and-one symptoms of being an internet addict:
|
|
|
073263 |
4. Your eyeglasses have a web site burned in on them.
|
|
|
073263 |
|
|
|
073263 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
073263 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
073263 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
073263 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|