add flag follow to set coursor whether follow the scrolling line or not, it is useful for line by line modify