| Summary: | [typing] Indentation gets disturbed on paste | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ayushman Jain <amj87.iitr> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
Looks like the fix for bug 337150 was not yet complete. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Build id: I20110528-0800 In the following testcase, copy all 3 lines of the string, CTRL + C, select the "Paste here" and paste the copied lines. Observe that the indentation of the 1st line is fine but that of line2 and line3 is different. Note that the line1 starts from one level less than the default indentation i.e. after having typed "String str =" when one presses enter key, the caret comes at the indentation level of "Paste here", but I started line1 by pressing backspace once. The bug does not happen if line 1 starts from default indentation level. I have smart typing enabled and "adjust indentation on paste" turned on. Rest of the settings are the default ones. class Try { static void m(int i){ String str = "line1\n" + "line2\n" + "line3\n"; String str1 = "Paste here\n"; } } This was ok in 3.6.2