Skip to content

[BUG] Copied lines are inserted in the wrong order #15151

@juze92

Description

@juze92

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

I want to copy/paste a rectangular selection of columns and lines (with 'alt' key) and insert this selection after an existing text into the same number of lines. I want to preserve the table layout. This worked well in the past but is not functioning any more.

Problems:

  • The two whitespaces are not considered
  • The line order is inverted WHEN I copy/paste more than 5 lines. When only working with four lines, only the whitespaces are not preserved!

The problems occur with version 8.6.7, 8.6.6, 8.6.4.
Version 8.5 works fine (I use this version until a fix of the problem).

Steps To Reproduce

E.g.: I want to add the content of the initial situation a second time, in the same lines and with two whitespaces in between.

Initial situation:

abc
def
ghi
jkl
mno
pqr
  1. I first select all rows and columns by pressing the 'alt' key to have a 6x3 rectangular selection (see image 1 in the comments).
  2. I copy the selection.
  3. After that, I want to insert the copied content (in the same lines and with two white spaces in between) by using the 'alt' key function (see image 2).
  4. After marking the lines, I paste the copied content. The expected and obtained results are below.

Current Behavior

Want I get:

  • When working with more than 4 lines:
abcpqr
defmno
ghijkl
jklghi
mnodef
pqrabc
  • When working with up to 4 lines:
abcabc
defdef
ghighi
jkljkl

Expected Behavior

What I want:

abc  abc
def  def
ghi  ghi
jkl  jkl
mno  mno
pqr  pqr

Debug Information

Notepad++ v8.6.7   (64-bit)
Build time : May 12 2024 - 20:04:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\Program Files\Notepad++\change.log" 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.4412
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions