Skip to content

Selection misbehavior on certain conditions #1739

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/1739
Reporter bilbo (@bilbo2)

How to reproduce:

Put thesee two lines of text (and the empty line between them) into editor:

abcdefgh

ABCDEF

Then put cursor at end of first line, after letter "h". Press F3, then press key down. Entire first line is selected (only the newline should be selected) and if you press F8, both lines disappear.

Also, if you start with cursor at "D", then press F3, then press arrow up twice, the selection is correct (everything from "d" to "D"), BUT, if you start at "D" and then start pressing left arrow, once you get to "h", then everything from "d" to "D" is also selected, which is wrong and if you press F8, then even the rest of second line ("DEF") which is not selected is deleted too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mceditmcedit, the built-in text editorprio: mediumHas the potential to affect progressver: 4.7.0-pre3Reproducible in version 4.7.0-pre3

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions