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