Commit 55159b7b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

painting: don't try to start highlighting before column zero

This could happen when a tab or a double-width character straddles
the boundary between two softwrapped chunks.
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -2624,6 +2624,9 @@ void edit_draw(filestruct *fileptr, const char *converted,
/* Compute on which screen column to start painting. */
start_col = strnlenpt(fileptr->data, top_x) - from_col;
if (start_col < 0)
start_col = 0;
thetext = converted + actual_x(converted, start_col);
/* If the end of the mark is onscreen, compute how many
......
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