Commit 26fb907a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

screen: ehm... no, that was wrong: page_start /is/ a column position

(The mistake becomes visible when you go to the end of a very long line
of double-width characters: the $ will be shown on the right edge, even
though you're already at line's end.)

This reverts commit 16a7fd4b from yesterday.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -2711,7 +2711,7 @@ int update_line(filestruct *fileptr, size_t index)
#endif
if (page_start > 0)
mvwaddch(edit, line, margin, '$');
if (strlenpt(fileptr->data + page_start) > editwincols)
if (strlenpt(fileptr->data) > page_start + editwincols)
mvwaddch(edit, line, COLS - 1, '$');
#ifndef NANO_TINY
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment