only write buffer to disk if sensible

Only write the buffer to disk on CursorMoved / CursorMovedI, if the file
is already handled by Sy.