Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 423857

Summary: Duplication of line when hitting enter
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: EditorAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe
Version: unspecified   
Target Milestone: 5.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2013-12-11 14:39:06 EST
5.0 M1.

Start with a JS file like this:

/*global require */var glob = require('glob');

var path = require('path');
var fs = require('graceful-fs');


With the cursor at the end of the block comment, hit enter. It duplicates the part of the line after the comment so you end up with this: 

/*global require */var glob = require('glob');
var glob = require('glob');

var path = require('path');
var fs = require('graceful-fs');

Expected: no duplication
Comment 1 Bogdan Gheorghe CLA 2013-12-11 15:33:12 EST
Problems with the auto-indent code.

Fixed in master

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=92529b9f51df7841c5ebda6b86a21350936dfe9d