Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356925 - Word wrap in EGit commit dialog is broken
Summary: Word wrap in EGit commit dialog is broken
Status: RESOLVED DUPLICATE of bug 387932
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 08:51 EDT by Sascha Scholz CLA
Modified: 2012-10-07 09:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***