libdasc/editor: Handle error returned from Editor.refresh
libdasc/editor: Implement indent properly