:bug: Fix broken access to editor in getLinesCount

Closes #128
:memo: Update History.md
Prepare 3.1.3 release