Skip to content

Bug when pasting over selection #378

@craigo-

Description

@craigo-

Tested builds:

  • Notepad3 beta build 3.18.221.902
  • Notepad3 beta build 3.18.222.903
  • Notepad3 release build 3.18.222.905

There is a bug when pasting into a selection.

Steps to reproduce:

  1. Enter multiple lines of text into Notepad3, e.g.:
Line 1
Line 2
Line 3
Line 4
  1. Select line 3 and copy it, e.g. with Ctrl+C:
    image
  2. Select line 4 and paste, e.g. with Ctrl+V (result: normal behaviour - line 4 now has line 3 text):
    image
  3. Immediately paste again with the caret on line 5, e.g. with Ctrl+V (result: unexpected behaviour - Line 5 now has line 4 text. The clipboard should still have line 3 text in it):
    image

The bug does not occur when the first paste does not have a previous selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions