Fix insert mode at beginning of line
Use correct cursor API
Merge pull request #120 from adrianolaru/fix-exit-insert-mode-at-bol

Fix insert mode at beginning of line, fixes #115.