andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Deleting folded lines content #39

Closed macrojames closed 11 years ago

macrojames commented 12 years ago

When deleting long lines content, which are folded to minimum two lines, only first Line gets deleted and others are "overwritten" by following lines (if any).

Orphan lines disappear, when changing to another application or typing any key

Expected behaviour:

Steps to reproduce:

Possible fix: Trigger redraw after deleting?

andreikop commented 12 years ago

Thank you

This is known QScintilla bug.

If we trigger full redraw after every deleting, it might work slowly when user is holding Del key.

I'm not going to fix it now, because it is not too critical and I'm already working on QScintilla replacement. See #32 But, if someone fixed it, I would be happy.

For redrawing lines without switching applicaiton, you might move cursor down.

andreikop commented 12 years ago

I tried to call QsciScintilla.update() or QSciScintilla.repaint(), but it doesn't fix the problem

andreikop commented 11 years ago

I changed code editor component. Now it's ok