Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356925

Summary: Word wrap in EGit commit dialog is broken
Product: [Technology] EGit Reporter: Sascha Scholz <sascha.scholz>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: remy.suen, robin
Version: 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sascha Scholz CLA 2011-09-07 08:51:02 EDT
Steps to reproduce:
# Enter "test1 test2 test3 test4 test5 test6 test7 test8 test9 test0 testa testb testc testd teste" -> commit message is correctly wrapped after "testb"
# Enter "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " before test1

Result:
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
test1
test2
test3
test4
test5
test6
test7
test8
test9
test0
testa
testb
testc testd teste"

I think the problem here is that line breaks are added once a word wrap occurs. Instead, the line breaks should only be added once in a step after the commit message string has been finalized. Until then, word wraps should only be in the visualization and not really in the string.
Comment 1 Robin Stocker CLA 2012-10-07 09:07:25 EDT
Thanks for reporting this bug. Closing as a duplicate of bug 387932, as there's already a solution there.

*** This bug has been marked as a duplicate of bug 387932 ***