Bug 579102

Summary: [Multiple carets, typing] Delete key after Enter key doesn't properly join the lines again
Product: [Eclipse Project] Platform Reporter: Dirk Steinkamp <Dirk.Steinkamp>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 Keywords: ui
Version: 4.23   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=574617
Whiteboard:

Description Dirk Steinkamp CLA 2022-03-05 04:00:04 EST
Steps to reproduce in an editor (tried on Windows):

- enter some text, e.g
  ArrayList list1;
  ArrayList list2;

- enter multi-selection mode (e.g. block selection mode, then "to multi-selection")

- create two carets, e.g. by alt+click between ArrayList/list1 and ArrayList/list2

- press Enter -> the line is correctly split for all caret positions

- press Delete 
  -> the joining of the line is not correctly processed: the lines seem unchanged, but the carets are positioned in the right places (actually consistently only the second caret, as the first is somewhat only shown after the window lost focus, and got focus again).

- press Delete again
  -> now the lines are joined

Suspicion: It looks like Enter might insert two whitespaces (cr/lf) (on Windows) into the document, but the Delete key in this occasion doesn't respect that properly and only removes them individually.