| Summary: | Bug in org.eclipse.xtext.example.arithmetics.ui.autoedit.InterpreterAutoEdit | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Harald M <harald.m> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | sven.efftinge | ||||
| Version: | unspecified | Flags: | sven.efftinge:
helios+
|
||||
| Target Milestone: | RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 169197 [details]
Patch
patch applied, thanks. Closing bug which were set to RESOLVED before Eclipse Neon.0. |
Build Identifier: Computation of offset has a bug *** current: int lineStart; try { lineStart = document.getLineOfOffset(command.offset); if (!document.get(lineStart, 3).equals("def")) { *** fixed: int line; int lineStart; try { line = document.getLineOfOffset(command.offset); lineStart = document.getLineOffset(line); if (!document.get(lineStart, 3).equals("def")) { Reproducible: Always