jrhenderson1988 / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Undo broken on edits modifying multiple lines #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Type some lines of text in the default editor.
2. Select those lines and either tab on comment them
3. Undo (Ctrl-z or button)

The lines disappear.
(they come back when undoing one more time.)

using jsyntaxpane-0.9.5-b27.jar (on Debian unstable but it should not be
relevent)

Imho, the remove and insertString steps of the replace should be grouped
together. (Btw, why are you doing a replace on the whole selected part
instead of inserts at the beginning of the lines is it more efficient to do
one much larger replace spanning many lines ?).

Btw, the bug is worse for multiple lines untab (shift-tab) or uncomment :
another level of undo does no make the lines reappear !

Original issue reported on code.google.com by un.compt...@gmail.com on 5 Nov 2009 at 3:38

GoogleCodeExporter commented 9 years ago
I did more changes in r117.  Will create a binary download shortly.

See issue 88

Original comment by ayman.al...@gmail.com on 8 Nov 2009 at 10:19