]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.004
- use _desktopdir macro
[packages/vim.git] / 6.2.004
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.004
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.004
11 Problem:    With a line-Visual selection at the end of the file a "p" command
12             puts the text one line upwards.
13 Solution:   Detect that the last line was deleted and put forward. (Taro
14             Muraoka)
15 Files:      src/normal.c
16
17
18 *** ../vim-6.2.003/src/normal.c Wed May 21 16:44:35 2003
19 --- src/normal.c        Mon Jun  2 20:38:14 2003
20 ***************
21 *** 8124,8132 ****
22             if (VIsual_mode == Ctrl_V && dir == FORWARD)
23                 flags |= PUT_LINE_FORWARD;
24             dir = BACKWARD;
25 !           if (VIsual_mode != 'V'
26 !                            && curwin->w_cursor.col < curbuf->b_op_start.col)
27 !               /* cursor is at the end of the line, put forward. */
28                 dir = FORWARD;
29         }
30   #endif
31 --- 8124,8135 ----
32             if (VIsual_mode == Ctrl_V && dir == FORWARD)
33                 flags |= PUT_LINE_FORWARD;
34             dir = BACKWARD;
35 !           if ((VIsual_mode != 'V'
36 !                       && curwin->w_cursor.col < curbuf->b_op_start.col)
37 !                   || (VIsual_mode == 'V'
38 !                       && curwin->w_cursor.lnum < curbuf->b_op_start.lnum))
39 !               /* cursor is at the end of the line or end of file, put
40 !                * forward. */
41                 dir = FORWARD;
42         }
43   #endif
44 *** ../vim-6.2.003/src/version.c        Mon Jun  2 22:16:24 2003
45 --- src/version.c       Mon Jun  2 22:19:50 2003
46 ***************
47 *** 632,633 ****
48 --- 632,635 ----
49   {   /* Add new patch number below this line */
50 + /**/
51 +     4,
52   /**/
53
54 -- 
55 Q: Should I clean my house or work on Vim?
56 A: Whatever contains more bugs.
57
58  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
59 ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
60 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
61  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
This page took 0.029763 seconds and 3 git commands to generate.