| Summary: | index out of bounds when indent in js editor | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Amy Wu <for.work.things> |
| Component: | Webtools.WST.Javascript | Assignee: | Amy Wu <for.work.things> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Amy Wu
i get the same exception if i click somewhere on a line and perform Source->Shift Right Changed Version field given new release numbering. The problem has to do with JSLineStyleListener trying to redraw a region during a document changed event. Drawing in the text widget is suspended, meaning the document is not really updated, but JSLineStyleListener tries to go ahead and have the text widget redraw a region bigger than the text widget knows. The fix is to just add an extra check before requesting the redraw region and if the redraw region requested is longer than the text widget knows, only redraw up to where the text widget knows. This probably isn't the perfect fix, but I think it'll be good enough. released for this week's ibuild verified in wtp 1.5 rc5 |