Strange cut-n-paste bug?

46 views
Skip to first unread message

$Bill

unread,
Sep 12, 2021, 2:53:11 AM9/12/21
to vim_dev

Using the 19 lines of text below (numbered sequentially in 1st 2 cols) as a test case - please save to unix file fmt file on Windows 10 file system to reproduce my problem.

My editor is gvim on Windows 10 64-bit:
    VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 12 2020 22:02:10)
    MS-Windows 64-bit GUI version with OLE support
    Included patches: 1-967  Compiled by appveyor-at-APPVYR-WIN

How to reproduce error:

Move to line 11 col 1
Type "a5dd (to delete 5 lines and store them in "a)
Move to line 17 col 1
Type "bY (to copy line to "b)
Move to line 19 col 1
Type "BY (to append line to "b)
Move to line 10 col 1
Type 5dd (to cut lines 10, 16-19 into unnamed register)
Move to line 6 col 1
Type p (to paste those 5 lines in unnamed register between the lines 6&7)

Fails! Instead of pasting the 5 lines from unnamed register, it pastes the
two lines from "b


Given The following text (part of a WNBA boxscore with numbers added to col 1):

-------------------------- save me to disk (I'm using Unix file fmt on 64-bit Doze 10 ----------

1
2 ----------------------------------------------------
3
4
5 ----------------------------------------------------
6
7
8 ----------------------------------------------------
9
10 aaaaaaa 4.
11 Game Dbl-Figures Leaders:
12 Player Pts FG% 3P% FT% RB AS BL ST TO PF EFF
13 bbbbbbbbb 12 (50 /0 /67 )/ 7/ 3/ 0/ 2/ 3/ 4/+15
14 cccccc 12 (57 /67 /100)/ 2/ 1/ 1/ 0/ 1/ 3/+12
15 ddddddd 10 (63 /0 /0 )/ 1/ 3/ 0/ 3/ 5/ 3/ +9
16 4 5-15 0-3 2-2 5-12 1-1 3-4 33.3 0.0 100 41.7 100 75 12 14
17 F 23-55 2-10 9-11 23-52 3-13 26-29 41.8 20 81.8 44.2 23.1 89.7 57 75
18 4 3 6 3 2 3 3 4 3 3 7 3 1 4 6 -1 -1 +2 -1 -2
19 F 13 19 5 10 4 17 22 9 14 32 13 4 20 17 -1 -13 -4 -3 -3 +5

---------------------------------- end test file -----------------------------------------------

I doubt it matters, but I'm in the left window of a vertically even split 161 char window (80 & 80) for 55 lines.

TIA, Bill



Christian Brabandt

unread,
Sep 13, 2021, 11:07:11 AM9/13/21
to vim_dev
Strange, I can reproduce.

I'll have a closer look soon.


Best,
Christian
--
Leben heißt, sich wandeln; und vollkommen sein heißt, sich oft
gewandelt haben.
-- John Henry Newman
Reply all
Reply to author
Forward
0 new messages