ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

ScintillaNET 4.0 64-bit SCNotification modificationType is 0

Open leojazz opened this issue 6 years ago • 1 comments

Hi,

ScintillaNET 4.0 which hasn't been released yet appears to have a bug when the platform target is 64-bit.

ScnModified method in LineCollection.cs receives a parameter NativeMethods.SCNotification. When the text is changed SCNotification.modificationType is always 0 and therefore TrackInsertText and TrackDeleteText do not get called and this causes Lines.Count to always be 1.

In order to reproduce make sure to set your platform target in your WinForms project to x64. Goto Project-->Properties-->Build tab.

Let me know if you are able to reproduce the bug.

Regards, leojazz

leojazz avatar May 29 '19 06:05 leojazz

This is fixed by #447.

toehead2001 avatar Jun 06 '19 04:06 toehead2001