Fixed 2 bugs with text edit.

- start numbering from -1
- apply cursor to new labels
Merge branch 'populate' into gh-pages