Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349329 - [client][compare] Weird behavior editing code in the compare view
Summary: [client][compare] Weird behavior editing code in the compare view
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: libing wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 10:53 EDT by Felipe Heidrich CLA
Modified: 2011-09-01 11:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Heidrich CLA 2011-06-14 10:53:44 EDT
I was trying to edit js code in the compare view and came across some weird behaviors:

First case:
Selected a entire line (including line delimiter) and cut it from content.
At this point arrow up and arrow down started to skip lines, also, the caret was stuck in one line and hightlight current line was in another line.
Steps, one a line that had not changed do the following:
Put the caret at first position on the line
Hold shift down and hit arrow down to select the entire line.
Now hit Ctrl+x
Press arrow up a few times and then down,
here the output in the console:
Uncaught ReferenceError: titlePane is not defined (compare-editor.js:384)

Other case that failed for me:
Using Alt+arrow up, Alt+arrow down caused the line to disappear.
Comment 1 Felipe Heidrich CLA 2011-06-14 14:19:58 EDT
Libing showed me the code, good to release.
Comment 2 libing wang CLA 2011-06-14 14:26:05 EDT
fixed with fe2035a2352a83d03ef80f4a7039eaea834676b8