add call getLinesInfo() after add char
fix caret under the range line
for Max