kakoune/test/regression/4926-crash-with-fold-and-ranges/rc
Maxime Coste e58592f00a Fix highlighters being applied to empty display buffers
In some cases such as with folding we can end-up with regions
not having any atoms to highlight which can trigger a crash as
we assume display buffers not to be empty

Fixes #4926
2023-06-19 12:55:55 +10:00

7 lines
276 B
Plaintext

declare-option range-specs fold %val{timestamp} 1.1,3.8|folded
add-highlighter buffer/regions regions
add-highlighter buffer/regions/curly region \{ \} regions
add-highlighter buffer/regions/curly/brace region \[ \] fill green
add-highlighter buffer/fold replace-ranges fold