mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Drop some dead code in add_document_line: line_pos should never be
negative.
This commit is contained in:
parent
26c9bdf538
commit
e64871f5e2
@ -304,8 +304,6 @@ add_document_line(struct plain_renderer *renderer,
|
|||||||
} else if (line_char == ASCII_BS) {
|
} else if (line_char == ASCII_BS) {
|
||||||
if (!(expanded + line_pos)) {
|
if (!(expanded + line_pos)) {
|
||||||
/* We've backspaced to the start of the line */
|
/* We've backspaced to the start of the line */
|
||||||
if (expanded > 0)
|
|
||||||
expanded--; /* Don't count it */
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user