summaryrefslogtreecommitdiff
path: root/src/buffer_utils.hh
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-11-14 11:38:22 +0100
committerMaxime Coste <mawww@kakoune.org>2024-11-28 08:08:13 +1100
commit5d378fa3a5139ca7c075ddf1a533856f53943f73 (patch)
tree72ea2cbc974f05fde96d66f1b6f97cc95845e77e /src/buffer_utils.hh
parent888b23ffad23ee5d41562a1a9f17d11f40ad524a (diff)
Fix overlapping range passed to BufReadFifo in non-scrolling fifos
On the first read from a nonscrolling fifo, we insert after the buffer contents (which is just "\n"), and later delete the redundant newline (582c3c56b (Do not add trailing newline to non-scrolling fifo buffers, 2024-01-28)). This deletion invalidates inserted ranges passed to BufReadFifo. Fix that. The test uses another fifo to pass ranges. I guess it could use "ui_out -until" as well but this seems simpler. The test script needs a fd but 3 and 4 are already taken so use 5. I didn't find a portable way to check if it's already taken. Fixes #5255
Diffstat (limited to 'src/buffer_utils.hh')
0 files changed, 0 insertions, 0 deletions