2 Subject: Patch 6.2.330 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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
14 Files: src/normal.c, src/ops.c, src/structs.h
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
21 * "gU" Change text to upper case.
30 * "gU" Change text to upper case.
34 + oap->cursor_start = curwin->w_cursor;
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
44 curbuf->b_op_start = oap->start;
47 ! saved_cursor = curwin->w_cursor;
49 format_lines(oap->line_count);
52 curbuf->b_op_start = oap->start;
55 ! saved_cursor = oap->cursor_start;
57 format_lines(oap->line_count);
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
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" */
69 long line_count; /* number of lines from op_start to op_end
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
76 { /* Add new patch number below this line */
82 ARTHUR: What are you going to do. bleed on me?
83 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
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 ///