Commit cf14ee2e authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

moving: the current chunk is always 0 when not in softwrap mode

This is a partial fix for https://savannah.gnu.org/bugs/?51770

.
Analysis-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -3076,7 +3076,10 @@ size_t get_chunk_and_edge(size_t column, filestruct *line, size_t *leftedge)
* relative to the first row (zero-based). */
size_t chunk_for(size_t column, filestruct *line)
{
return get_chunk_and_edge(column, line, NULL);
if (ISSET(SOFTWRAP))
return get_chunk_and_edge(column, line, NULL);
else
return 0;
}
/* Return the leftmost column of the softwrapped chunk of the given line that
......
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