4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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
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
22 if (VIsual_mode == Ctrl_V && dir == FORWARD)
23 flags |= PUT_LINE_FORWARD;
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. */
32 if (VIsual_mode == Ctrl_V && dir == FORWARD)
33 flags |= PUT_LINE_FORWARD;
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
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
49 { /* Add new patch number below this line */
55 Q: Should I clean my house or work on Vim?
56 A: Whatever contains more bugs.
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 ///