A well-known and used MUI custom class (TextEditor.mcc) which provides application programmers a textedit gadget. It supports features like word wrapping, soft styles (bold, italic, underline), a spell checking interface as well as an AREXX interface for scripting.
GNU Lesser General Public License v2.1
19
stars
4
forks
source link
Calculation for the longest line in NoWrapMode can be optimized. #14
In the current implementation the longest line is found out by traversing through all the lines.
It would be more optimized to calculate the longestline by traversing through all the lines ONLY in the case of an import. In the cases of other changes, calculate ONLY for the edited section, and compare it with previous longestline value.
In the current implementation the longest line is found out by traversing through all the lines.
It would be more optimized to calculate the longestline by traversing through all the lines ONLY in the case of an import. In the cases of other changes, calculate ONLY for the edited section, and compare it with previous longestline value.