]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.331
- updated to 6.2.430
[packages/vim.git] / 6.2.331
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.330 (extra)
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.2.331 (after 6.2.327)
11 Problem:    "gwap" leaves cursor in the wrong line.
12 Solution:   Remember the cursor position before finding the ends of the
13             paragraph.
14 Files:      src/normal.c, src/ops.c, src/structs.h
15
16
17 *** ../vim-6.2.330/src/normal.c Mon Mar  8 12:27:39 2004
18 --- src/normal.c        Tue Mar  9 11:41:22 2004
19 ***************
20 *** 7288,7295 ****
21        *         "gU"       Change text to upper case.
22        *   "g?"     rot13 encoding
23        */
24 -     case 'q':
25       case 'w':
26       case '~':
27       case 'u':
28       case 'U':
29 --- 7291,7300 ----
30        *         "gU"       Change text to upper case.
31        *   "g?"     rot13 encoding
32        */
33       case 'w':
34 +       oap->cursor_start = curwin->w_cursor;
35 +       /*FALLTHROUGH*/
36 +     case 'q':
37       case '~':
38       case 'u':
39       case 'U':
40 *** ../vim-6.2.330/src/ops.c    Mon Mar  8 12:27:39 2004
41 --- src/ops.c   Tue Mar  9 11:44:28 2004
42 ***************
43 *** 4066,4072 ****
44       curbuf->b_op_start = oap->start;
45   
46       if (keep_cursor)
47 !       saved_cursor = curwin->w_cursor;
48   
49       format_lines(oap->line_count);
50   
51 --- 4066,4072 ----
52       curbuf->b_op_start = oap->start;
53   
54       if (keep_cursor)
55 !       saved_cursor = oap->cursor_start;
56   
57       format_lines(oap->line_count);
58   
59 *** ../vim-6.2.330/src/structs.h        Mon Mar  8 12:27:39 2004
60 --- src/structs.h       Tue Mar  9 12:40:34 2004
61 ***************
62 *** 1602,1607 ****
63 --- 1602,1608 ----
64                                    do_format()) */
65       pos_T     start;          /* start of the operator */
66       pos_T     end;            /* end of the operator */
67 +     pos_T     cursor_start;   /* cursor position before motion for "gw" */
68   
69       long      line_count;     /* number of lines from op_start to op_end
70                                    (inclusive) */
71 *** ../vim-6.2.330/src/version.c        Tue Mar  9 10:48:23 2004
72 --- src/version.c       Tue Mar  9 12:28:30 2004
73 ***************
74 *** 639,640 ****
75 --- 639,642 ----
76   {   /* Add new patch number below this line */
77 + /**/
78 +     331,
79   /**/
80
81 -- 
82 ARTHUR: What are you going to do. bleed on me?
83                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
84
85  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
86 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
87 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
88  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.035367 seconds and 3 git commands to generate.