Fixes #21315
:echo join(range(1, 1000), "\n\n") followed by f then b at the more promptsrc/message.cmsg_sb_eol to avoid marking a trailing newline-only chunk as finished so the older extra-newline bug does not returnsrc/testdir/test_messages.vim with three new screendumps exercising single, double, and triple newline separators, comparing the initial page to f/b and PageDown/PageUp redrawsmake -C src test_messages TEST_FILTER=Test_message_scrollback_empty_lines passedmake -C src test_messages test_cmdline test_vim9_cmd passed on macOS and Ubuntu Linux with platform/feature skipsmake -C src/testdir codestyle passed on macOS and Ubuntu Linux--with-features=tiny build and make -C src testtiny passedgit diff --cached --check passedTest_echo_verbose_system passed on Linux, skipped by the existing Mac guard on macOShttps://github.com/vim/vim/pull/21444
(5 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
The comment in the new test says the single newline case checks that
no extra empty line is introduced. I reverted only the msg_sb_eol()
hunk and the new test still passes, newline_count 1 included. What
fails is the existing Test_echo_verbose_system(). So the comment
claims something the loop does not check. Please drop it, or point
to Test_echo_verbose_system() instead.
With this PR, g< (and G at the more prompt) shows the trailing
empty lines of a message, as they were on the screen:
:echo "a\n" " press Enter, then g<
master shows "a" and the prompt right below it; this PR shows the
empty line between them, like the screen did. That is right, but it
is a visible change that the description does not mention and no test
covers. A g< step in the new test would pin it down.
"including empty lines" refers to the condition that was removed.
Without it the line reads fine:
// Store the text for scroll back.The subject should state the problem, and the body needs the
Problem:/Solution: lines. A pull request template was added about a
week ago and covers this, including the AI disclosure:
6918007
Could you fill it in?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I'll address these
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()