SIGN IN SIGN UP

multi_buffer: Fix a panic when expanding an excerpt with the cursor at the end (#17955)

This PR fixes a panic when expanding an excerpt within a multibuffer
that could occur when the cursor was at the end of the buffer.

You can reproduce this by opening a multibuffer, putting your cursor at
the very end of that buffer, and then expanding the excerpt (Shift +
Enter).

Release Notes:

- Fixed a panic that could occur when expanding an excerpt within a
multibuffer when the cursor was at the end of the excerpt.

Co-authored-by: Antonio <antonio@zed.dev>
M
Marshall Bowers committed
5cdca6d8dd8c2179a85293376e8db324c34b6945
Parent: ccfd4b1
Committed by GitHub <noreply@github.com> on 9/17/2024, 5:49:52 PM