Empty marker after line delete #258

Closed
opened 2011-11-28 12:26:33 +01:00 by marijnh · 1 comment
marijnh commented 2011-11-28 12:26:33 +01:00 (Migrated from gitlab.com)

Visible in code folding demo: http://codemirror.net/demo/folding.html

To reproduce:

%---------%1 {cursor_position}//no white space here
%marker%2 function keyEvent(cm, e) {...
%---------%10 }

Press delete on your keyboard when cursor is in {cursor_position}.
Then line 2 is now line 1 and doesn't contains marker(set before by setMarker)

Bug also occurs when CodeMirror.removeLine(0) was launched.

Visible in code folding demo: http://codemirror.net/demo/folding.html To reproduce: %---------%1 {cursor_position}//no white space here %marker%2 function keyEvent(cm, e) {... %---------%10 } Press delete on your keyboard when cursor is in {cursor_position}. Then line 2 is now line 1 and doesn't contains marker(set before by setMarker) Bug also occurs when CodeMirror.removeLine(0) was launched.
marijnh commented 2011-11-29 11:06:14 +01:00 (Migrated from gitlab.com)

I've pushed two patches, 65e835d88b and faa65d74fc , that should help make this behave less weirdly.

I've pushed two patches, 65e835d88b839a15ec6ad710a03e5f6916af0c96 and faa65d74fc23055a33cc9a755bde708b56d9a4b4 , that should help make this behave less weirdly.
marijnh (Migrated from gitlab.com) closed this issue 2011-11-29 11:06:14 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#258
No description provided.