| Summary: | Error after undo'ing move of several lines | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Editor | Assignee: | Silenio Quarti <Silenio_Quarti> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Silenio_Quarti |
| Version: | 5.0 | ||
| Target Milestone: | 7.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Chrome 37.0.2017.2 beta-m 1. Select 2 or more lines of text in the editor 2. Use Alt+UpArrow or Alt+DownArrow to move the lines up or down (or drag & drop the text to move it) 3. Press Ctrl+Z to undo You get an error, and some editor features stop working. Mouse selection doesn't behave correctly and undo stops working. > TypeError: "Cannot read property 'lineIndex' of undefined" > TextView._setDOMFullSelection (textView.js:6217) > TextView._setDOMSelection (textView.js:6114) > TextView._updateDOMSelection (textView.js:6765) > TextView._setSelection (textView.js:6310) > TextView.setSelection (textView.js:2851) > CompoundChange.undo (undoStack.js:136) > UndoStack.undo (undoStack.js:398) > (anonymous function) (actions.js:60) > TextView.invokeAction (textView.js:2085) > TextView._doAction (textView.js:4220) > TextView._handleKeyDown (textView.js:3341)