summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.588
blob: 6dfabd073174f671e1cd64de519d0738bdae6b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
To: vim_dev@googlegroups.com
Subject: Patch 7.3.588
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.588
Problem:    Crash on NULL pointer.
Solution:   Fix the immediate problem by checking for NULL. (Lech Lorens)
Files:	    src/window.c


*** ../vim-7.3.587/src/window.c	2012-06-13 18:15:13.000000000 +0200
--- src/window.c	2012-07-06 16:32:59.000000000 +0200
***************
*** 2184,2190 ****
      }
  
  #ifdef FEAT_AUTOCMD
!     if (win->w_closing || win->w_buffer->b_closing)
  	return; /* window is already being closed */
      if (win == aucmd_win)
      {
--- 2184,2190 ----
      }
  
  #ifdef FEAT_AUTOCMD
!     if (win->w_closing || (win->w_buffer != NULL && win->w_buffer->b_closing))
  	return; /* window is already being closed */
      if (win == aucmd_win)
      {
***************
*** 3723,3729 ****
  enter_tabpage(tp, old_curbuf, trigger_autocmds)
      tabpage_T	*tp;
      buf_T	*old_curbuf UNUSED;
!     int         trigger_autocmds UNUSED;
  {
      int		old_off = tp->tp_firstwin->w_winrow;
      win_T	*next_prevwin = tp->tp_prevwin;
--- 3723,3729 ----
  enter_tabpage(tp, old_curbuf, trigger_autocmds)
      tabpage_T	*tp;
      buf_T	*old_curbuf UNUSED;
!     int		trigger_autocmds UNUSED;
  {
      int		old_off = tp->tp_firstwin->w_winrow;
      win_T	*next_prevwin = tp->tp_prevwin;
***************
*** 3868,3874 ****
      void
  goto_tabpage_tp(tp, trigger_autocmds)
      tabpage_T	*tp;
!     int         trigger_autocmds;
  {
      /* Don't repeat a message in another tab page. */
      set_keep_msg(NULL, 0);
--- 3868,3874 ----
      void
  goto_tabpage_tp(tp, trigger_autocmds)
      tabpage_T	*tp;
!     int		trigger_autocmds;
  {
      /* Don't repeat a message in another tab page. */
      set_keep_msg(NULL, 0);
*** ../vim-7.3.587/src/version.c	2012-07-06 16:21:58.000000000 +0200
--- src/version.c	2012-07-06 16:37:47.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     588,
  /**/

-- 
Momento mori, ergo carpe diem

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///