solved a bug when user shrink the width of window, cause the same text line being splited to several visual lines. Utilizing real lines dispalys in current window instead of window text height,