work around sublime bug with caret position not refreshing