diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-07 14:32:26 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-07 14:32:26 +0100 |
| commit | afb44149d9ff613a60060648232cec52769a0823 (patch) | |
| tree | 648d51974310806d929a49625edd4f02ee17e0ba | |
| parent | 7a8771d3c46bef65e8432554bba8387188c99f3c (diff) | |
Fix "\todo TextDEndOfLine and BufEndOfLine functions don't exist"
| -rw-r--r-- | src/Fl_Text_Display.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 759cf6101..38a022b86 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -3729,7 +3729,7 @@ void Fl_Text_Display::find_line_end(int startPos, bool startPosIsLineStart, int retLines, retLineStart; - /* if we're not wrapping use more efficient BufEndOfLine */ + /* if we're not wrapping use more efficient Fl_Text_Buffer::line_end() */ if (!mContinuousWrap) { int le = buffer()->line_end(startPos); int ls = buffer()->next_char(le); @@ -3756,8 +3756,8 @@ void Fl_Text_Display::find_line_end(int startPos, bool startPosIsLineStart, with all of the text display code which was originally written without continuous wrap mode and always expects to wrap at a newline character. - Given the position of the end of the line, as returned by TextDEndOfLine - or BufEndOfLine, this returns true if there is a line terminating + Given the position of the end of the line, as returned by Fl_Text_Display::line_end() + or Fl_Text_Buffer::line_end(), this returns true if there is a line terminating character, and false if there's not. On the last character in the buffer, this function can't tell for certain whether a trailing space was used as a wrap point, and just guesses that it wasn't. So if an exact @@ -3765,8 +3765,6 @@ void Fl_Text_Display::find_line_end(int startPos, bool startPosIsLineStart, \param lineEndPos index of character where the line wraps \return 1 if a \\n character causes the line wrap - - \todo TextDEndOfLine and BufEndOfLine functions don't exist (nedit port?) */ int Fl_Text_Display::wrap_uses_character(int lineEndPos) const { IS_UTF8_ALIGNED2(buffer(), lineEndPos) |
