I can confirm this fix, thanks! It seems this fixed also following issue mentioned in start post:history1000.txt wrote:21.03.21 Fixed: Ctrl+Z edit comment: If user pastes comment with multiple Unix line breaks to existing comment, extra characters could be stored behind the comment (32/64)
Still there is a remaining issue:DrShark wrote: 2021-03-15, 15:03 UTCTest case 1.
[...]
8. Maybe some side bug or so, would be nice if somewone will confirm it. If to repeat steps 5-7 for the same comment many times, sometimes for some line TC saves the single linebreaks
and I have following suggestion on how to handle it: maybe if when saving the comment when TC detects Unix linebreak with Windows one right next to it (before/after), it could just ignore one linebreak? So the comment, which will be saved with marker which will indicate that linebreaks are Windows type, will actually have 1 "\n" instead on 2 ("\n\n"): this way when comment is opened again, Ctrl+Z dialog will show single linebreaks instead of double.DrShark wrote: 2021-03-15, 15:03 UTCTest case 1.
[...]
5. Open this comments dialog again, select all and past the text again instead of current comment (or past it as a new comment for some another file).
6.Don't save comment now, but with Enter key, manually create the linebreaks in places where Unix linebreaks should exist (Edit Comments dialog show them as an invisible character, though you can disover them by need of additional move of caret "|" with cursor keys).
7. Now save the comment.
The comment will have 2 Windows linebreaks now in places where original Unix linebreaks existed.
And for consistency, please consider converting Mac linebreaks to Windows type too.