Correct edit-window issues related to cursor position reporting and buffer change detection.