ide: Fix Document selectionStart bug

This fixes Issue #1254

Signed-off-by: Scott Wilson <i@scottwilson.ca>
ide: whitespace fix

Signed-off-by: Scott Wilson <i@scottwilson.ca>