diff --git a/src/winio.c b/src/winio.c index e3e00198272f0ceb521efedcf14b4e09cf887fe5..045dce3a521aaf42cbf3fd27d6a7cb7feefe367f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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