josephg / josephg/ShareJS

removeLines in ace ajax

Open
#159 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
5k
Forks
454
PR merge metrics
No merged PRs in 30d

Description

open in two tabs this link
http://sharejs.org/hello-ace.html

open console in any tab and type:

```
var doc = editor.getSession().getDocument()
var lastRowIndex = doc.getAllLines().length - 1;
doc.removeLines(lastRowIndex, lastRowIndex);
```

console have errors.

the problem happens when remove only last line.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.