Problem with pasting a copied line onto a selected text

SyntaxEditor for WPF Forum

Posted 6 years ago by Erwin Liong
Version: 16.1.0635
Platform: .NET 4.5
Environment: Windows 10 (64-bit)

Hi Actipro,


I ran into a problem performing copy-and-paste in Syntax Editor. 

Here are the steps to reproduce:

  1. In any Syntax Editor (eg. SDI Code Editor - Inline of the Sample Browser).
  2. Place caret at line 5 (without any selection).
  3. Perform Copy (Ctrl+C). The whole line is placed into System Clipboard.
  4. Go to Line 14, an empty line.
  5. Perform Paste (Ctrl+V).
  6. Expected/Observed: The clipboard text is pasted into line 14, along with its EndLine. This results in Line 14 and Line 15 being modified.
  7. On Line 8, select a some text (eg. the word Generics).
  8. Perform Paste (Ctrl+V).
  9. Expected (similar to Visual Studio and other text editors): The clipboard text is pasted in replacement of the selected text (clipboard replaces the word Generics).
  10. [Problem]Observed : The clipboard text is inserted in Line 8, the existing text in Line 8 is moved to Line 9 and the word Generics is removed.

Would you be able to fix this?

Thank you.



Erwin Liong

Comments (1)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Erwin,

Thanks for pointing this out.  We've updated the paste logic for the next maintenance release to only do a line oriented paste if there is a zero-length selection. Otherwise it will fall back to doing a normal paste.

Actipro Software Support

The latest build of this product (v22.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.