NoEOL returns true if the line is missing a trailing newline character.
()
| 175 | |
| 176 | // NoEOL returns true if the line is missing a trailing newline character. |
| 177 | func (fl Line) NoEOL() bool { |
| 178 | return len(fl.Line) == 0 || fl.Line[len(fl.Line)-1] != '\n' |
| 179 | } |
| 180 | |
| 181 | // LineOp describes the type of a text fragment line: context, added, or removed. |
| 182 | type LineOp int |