summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-03-22 21:44:37 +1100
committerMaxime Coste <mawww@kakoune.org>2024-03-22 21:44:37 +1100
commitd5f7cbad87331583717493ca701010f72c2d4f74 (patch)
tree17251b2fa868f96e8150b2b0e0db2887d7e36f89 /src/input_handler.cc
parenta1e6799aa9a4b2509a6a3af7c4bf4889bb826e2e (diff)
Do not generate more lines to display than window size
The wrap highlighter was pulling all lines until the cursor, regardless of whether the cursor was going to be made visible, this could lead to a display buffer containing much more lines than the actual viewport which eventually could lead to menu being anchored out of view that was leading to past-the-end buffer accesses. Fix the wrap higlighter not to pull lines up to the cursor when it is not tasked with making the cursor visible, and always trim the eventual extra lines after highlighting. Fixes #5118
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions