Dan Petitt:

I noticed that if I use Tab and Shift Tab to indent blocks I get thousands
of messages for insert_text and delete_text, for each line modified.
Because I have a notification handler that does something, with even a small
indent this is causing me a massive slowdown. Yes, I know its my fault, but
I cant avoid the changes I have to do on notifications but I cant find a way
of avoiding the problem.

Turn off notifications while processing the indent and unindent commands. You may first have to move the key bindings for these from Scintilla to your application.

> Maybe you could add additional notifications: "SC_MOD_BEFORE_INDENT"
> so i can 'modify' my doc just once and then for each change
> (insert/delete) you add "SC_MOD_INDENT" so I can choose to
> ignore these ones.

Too irregular: other operations may also be too heavy for some applications so its better to use a generic mechanism.

   Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to