]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.437
- add patches 7.3.619-743
[packages/vim.git] / 7.3.437
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.437
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.437
11 Problem:    Continue looping inside FOR_ALL_TAB_WINDOWS even when already done.
12 Solution:   Use goto instead of break. (Hirohito Higashi)
13 Files:      src/fileio.c, src/globals.h
14
15
16 *** ../vim-7.3.436/src/fileio.c 2011-09-02 11:56:15.000000000 +0200
17 --- src/fileio.c        2012-02-11 23:40:23.000000000 +0100
18 ***************
19 *** 8898,8907 ****
20                     if (tp != curtab)
21                         goto_tabpage_tp(tp);
22                     win_goto(aucmd_win);
23 !                   break;
24                 }
25             }
26         }
27   
28         /* Remove the window and frame from the tree of frames. */
29         (void)winframe_remove(curwin, &dummy, NULL);
30 --- 8898,8908 ----
31                     if (tp != curtab)
32                         goto_tabpage_tp(tp);
33                     win_goto(aucmd_win);
34 !                   goto win_found;
35                 }
36             }
37         }
38 + win_found:
39   
40         /* Remove the window and frame from the tree of frames. */
41         (void)winframe_remove(curwin, &dummy, NULL);
42 *** ../vim-7.3.436/src/globals.h        2012-02-04 23:34:57.000000000 +0100
43 --- src/globals.h       2012-02-11 23:43:45.000000000 +0100
44 ***************
45 *** 535,540 ****
46 --- 535,544 ----
47   EXTERN win_T  *prevwin INIT(= NULL);  /* previous window */
48   # define W_NEXT(wp) ((wp)->w_next)
49   # define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next)
50 + /*
51 +  * When using this macro "break" only breaks out of the inner loop. Use "goto"
52 +  * to break out of the tabpage loop.
53 +  */
54   # define FOR_ALL_TAB_WINDOWS(tp, wp) \
55       for ((tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next) \
56         for ((wp) = ((tp) == curtab) \
57 *** ../vim-7.3.436/src/version.c        2012-02-11 20:44:01.000000000 +0100
58 --- src/version.c       2012-02-11 23:40:47.000000000 +0100
59 ***************
60 *** 716,717 ****
61 --- 716,719 ----
62   {   /* Add new patch number below this line */
63 + /**/
64 +     437,
65   /**/
66
67 -- 
68 The future isn't what it used to be.
69
70  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
71 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
72 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
73  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.100443 seconds and 3 git commands to generate.