Commit 16a7fd4b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

screen: don't compare a character index with a column position

This addresses part of https://savannah.gnu.org/patch/?9216

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
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