From 2b76b47c8a087b81be139b552d9a41bb2006dcd3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 28 Jul 2026 12:28:27 -0300 Subject: fixing some crashes --- test/snapshots/yankpaste.snap | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/snapshots/yankpaste.snap') diff --git a/test/snapshots/yankpaste.snap b/test/snapshots/yankpaste.snap index 38ca6e3b..96082ad6 100644 --- a/test/snapshots/yankpaste.snap +++ b/test/snapshots/yankpaste.snap @@ -26,3 +26,12 @@ stable 400 5000 key v l y p stable 400 5000 snap charwise-inline +# a BLANK line yanks as a bare "\n": the block is empty, lineCount says 0 +# lines, and every `n - 1` in the linewise paste used to underflow — panic on +# y then p. It pastes as one empty line. +key o +key esc +settle 700 +key y p +stable 400 5000 +snap blankline -- cgit v1.3