Menu

#2409 SCI_LINEDELETE vs. SCI_LINECUT

Bug
closed-invalid
nobody
scintilla (612)
5
2023-11-05
2023-11-03
Yaron
No

Using Notepad++.

If you select 2 lines (including the EOL), and the caret is at the next line:

  • SCI_LINEDELETE deletes the current line only.
  • SCI_LINECUT cuts the three lines.

Is there a reason for the different results?
I'd expect SCI_LINECUT to also delete the current line only.

Thank you.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2023-11-03
    • status: open --> open-invalid
     
  • Neil Hodgson

    Neil Hodgson - 2023-11-03

    Deleting a single line is a common basic command that was implemented as SCI_LINEDELETE to emulate other editors. SCI_LINECUT was a new feature to help move code around.

    This is not a bug. Discussions belong on the mailing list.
    https://groups.google.com/g/scintilla-interest

     
  • Neil Hodgson

    Neil Hodgson - 2023-11-04
    • labels: --> scintilla
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB