Missing Line Number and broken undo margin

SyntaxEditor for WPF Forum

Posted 8 years ago by James Zheng
Version: 16.1.0632
Platform: .NET 4.5
Environment: Windows 10 (64-bit)
Avatar

Hi Actipro,

I've 2 issues to report.

Issue 1: Missing Line Number

Below are the steps to repro:

1. Go to sample project 'SyntaxEditor - Demo/SDI Code Editor (Inline)'

2. Select all the text in the editor by Ctrl + 'A' on the keyboard

3. Delete the selected text by hitting 'Delete' key on the keyboard

4. Copy at least 62 empty lines into the editor from other sources, eg notepad. (Note: I used empty lines to simplify the steps for you here. At least 62 lines is to make sure the whole window area of the editor is filled up with empty lines on my monitor.)

5. Put the caret at line 42

6. Drag with the mouse down until the caret is at line 43.

7. Delete the selected range by hitting 'Delete' key on the keyboard

8. You will notice that line number '43' is missing!

After some investigation, it's found that the issue won't surface if 'CanScrollPastDocumentEnd' of the editor's property is set to true. You try to select multiple lines and delete it to see more missing line numbers.

Expected Result: There shouldn't be any missing line numbers in all scenarios.

Issue 2: Broken Undo Margin

1. Follow the steps above.

2. Put the caret at line 5.

3. Drag with the mouse down until the caret is at line 10.

4. Delete the selected range by hitting 'Delete' key on the keyboard

5. You will notice that the yellow undo margin is broken! Lines from Line 6 to Line 9 are not marked with yellow undo margin.

If you delete lines 25 to line 30, you will notice that the boken yellow undo margin is at the end of the editor initially. But when you scroll up, the broken yellow undo margin swifts to between line 31 and 34!

Expected Result: There shouldn't be any broken yellow undo margin, since all the text lines are pasted into the editor.

Regards,

James Zheng

[Modified 8 years ago]

Comments (3)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi James,

1) I'm trying to repro this but have been unable to thus far, and have followed the steps exactly several times.  Perhaps you can link to a video that shows the same steps causing it?

2) Thanks for reporting this.  We will look into it.


Actipro Software Support

Posted 8 years ago by James Zheng
Avatar

Hi Actipro,

I've sent you 2 screen capture videos to support@actiprosoftware.com

Please let me know if you receive it.

Thanks and regards,

James Zheng

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

Hi James,

Thanks for the videos.  We have the line number issue fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.