Skip to content

Trim operations for selection don't always work properly #12658

@ArkadiuszMichalski

Description

@ArkadiuszMichalski

Trim leading operation for first partially selected line not work.

For such example with one line selection:
image
Trim Trailing works
image
but Trim Leading not
image

For multiple lines it's the same:

		ABCD
		ABCD		
		ABCD		
ABCD		

image

Run for this second case Trim Leading and Trailing Space command. This first tab on first line (covered by selection) is not removed, but last tab on fourth line (covered by selection) is removed. It's a bit confusing that deleting in selection doesn't work the same way.

image

Notepad++ v8.4.7   (32-bit)
Build time : Dec  1 2022 - 02:39:50
Path : D:\_test\NPPClean\notepad++.exe
Command Line : -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 (64-bit) 
OS Version : 21H2
OS Build : 22000.1219
Current ANSI codepage : 1250
Plugins : 
    mimeTools (2.8)
    NppConverter (4.4)
    NppExport (0.4)

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