[vim/vim] fix(message): fix echowindow wrapping and line order (PR #18874)

10 views
Skip to first unread message

glepnir

unread,
Dec 6, 2025, 8:16:07 AM (yesterday) Dec 6
to vim/vim, Subscribed

Problem: Long strings in echowindow wrap one character per line and display in reverse order.

Solution: Use full width for echowindow, reset msg_col after wrap, and increment lnum correctly when creating new lines.

Fix #18750


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18874

Commit Summary

  • e6c10a7 fix(message): fix echowindow wrapping and line order

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874@github.com>

h_east

unread,
Dec 6, 2025, 10:39:13 PM (22 hours ago) Dec 6
to vim/vim, Subscribed
h-east left a comment (vim/vim#18874)

Thanks.
The issue of lines being reversed only occurs when the cmdheight option is 2 or greater, so it would be better to explicitly state this condition in the test.
Yes, I understand that cmdheight is set to 2 a few lines earlier(L651).

call term_sendkeys(buf, ":call TwoMessages()\<CR>")

But I think it would be better to add set cmdheight=2 just before the test you added this time to prevent unexpected problems later on.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874/c3621556214@github.com>

glepnir

unread,
Dec 6, 2025, 11:08:26 PM (22 hours ago) Dec 6
to vim/vim, Push

@glepnir pushed 1 commit.

  • e5cb3df fix echowindow wrapping and line order


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874/before/55a5870839992ac19ee7bdce58ad7e537905d3b8/after/e5cb3dfdfd89b95188422bddcda8fa561cb08d22@github.com>

glepnir

unread,
Dec 6, 2025, 11:08:39 PM (22 hours ago) Dec 6
to vim/vim, Subscribed
glepnir left a comment (vim/vim#18874)

updated


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874/c3621572379@github.com>

Christian Brabandt

unread,
12:48 PM (8 hours ago) 12:48 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18874)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874/c3622673311@github.com>

Christian Brabandt

unread,
12:53 PM (8 hours ago) 12:53 PM
to vim/vim, Subscribed

Closed #18874 via 826d102.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18874/issue_event/21411488481@github.com>

Reply all
Reply to author
Forward
0 new messages